Skip to content

Commit

Permalink
feat: Make the crate no_std+alloc compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
lu-zero committed Apr 2, 2024
1 parent bc5e1bd commit 916ad57
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,17 @@ license = "MIT"
repository = "https://github.com/wot-rust/wot-td"
keywords = ["wot", "WebofThings"]

[features]
default = ["std"]
std = ["serde/std", "serde_json/std", "serde_with/std", "time/std"]
alloc = ["serde/alloc", "serde_json/alloc", "serde_with/alloc", "time/alloc"]

[dependencies]
oxilangtag = { version = "0.1.3", features = ["serde"] }
oxilangtag = { version = "0.1.5", features = ["serde"] }
serde = { version = "1.0.137", features = ["derive"] }
serde_json = "1.0.81"
serde_json = { version = "1.0.81", default-features = false }
serde_repr = "0.1.9"
serde_with = "3.4.0"
serde_with = { version = "3.7.0", features = ["macros"] }
thiserror = "1.0.31"
time = { version = "0.3.11", features = ["serde", "serde-well-known"] }

Expand Down

0 comments on commit 916ad57

Please sign in to comment.