Skip to content

Commit

Permalink
Change serde features to allow no_std use
Browse files Browse the repository at this point in the history
The `argh_shared` crate depends on `serde`, which uses `std` in its default configuration. This makes it incompatible with `no_std` crates.

As per the [`serde` docs](https://serde.rs/no-std.html), adding `default-features = false` makes it support `no_std`, and adding the `alloc` feature lets it opt back into memory allocation so it can still handle `String`s and such.
  • Loading branch information
wgwoods authored Jan 17, 2024
1 parent 1aa3e52 commit a8ef6ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion argh_shared/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ repository = "https://github.com/google/argh"
readme = "README.md"

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

0 comments on commit a8ef6ec

Please sign in to comment.