From 737f3c787236da788d2d0f02f203c68f714168f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=BB?= <49233942+hsqStephenZhang@users.noreply.github.com> Date: Fri, 10 Jan 2025 19:50:08 +0800 Subject: [PATCH] readme: update no_std notes in readme; ci: add no_std test (#23) --- .github/workflows/ci.yml | 2 ++ README.md | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 29a08b9..bf9be65 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -170,6 +170,8 @@ jobs: key: ${{ runner.os }}-coverage-dotcargo - name: Run test run: cargo test + - name: Run test(no_std, hashbrown, libm) + run: cargo test --no-default-features --features hashbrown,libm sanitizer: name: sanitizer diff --git a/README.md b/README.md index f8a600d..4f970e7 100644 --- a/README.md +++ b/README.md @@ -41,8 +41,9 @@ The MSRV for this crate is 1.55.0. - no_std ```toml + # when 0.2.9 is published [dependencies] - caches = { version: "0.3", default-features = false, features = ["libm", "hashbrown"] } + caches = { version = "0.3", default-features = false, features = ["libm", "hashbrown"] } ``` ## Usages