Skip to content

Commit

Permalink
fix: no-std with serde feature
Browse files Browse the repository at this point in the history
  • Loading branch information
klkvr committed Mar 5, 2025
1 parent 6e6dc26 commit d743e25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
toolchain: ${{ matrix.rust }}

- name: Build (no_std)
run: cargo build --no-default-features
run: cargo build --no-default-features --features "${{ matrix.features }}"

- name: Build
run: cargo build --features "${{ matrix.features }}"
Expand Down
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ keywords = ["data-structure", "no_std"]
categories = ["data-structures", "no-std"]

[dependencies]
serde = { version = "1.0", optional = true, features = ["derive"] }
serde = { version = "1.0", optional = true, default-features = false, features = ["alloc", "derive"] }

[features]
default = ["use_std"]
use_std = []
std = ["use_std"]

[dev-dependencies]
serde_json = "1.0.0"
Expand Down

0 comments on commit d743e25

Please sign in to comment.