diff options
| author | Henry <mail@henrygressmann.de> | 2026-08-25 18:05:11 +0200 |
|---|---|---|
| committer | Henry <mail@henrygressmann.de> | 2026-08-25 18:06:47 +0200 |
| commit | e5f234b1604511d0463252ee173caee6e9cd18f4 (patch) | |
| tree | 6bd77faa802b052a206851e69b4a60f393176572 /crates/types/Cargo.toml | |
| parent | 11052c6c2092db3388e33286ddba0f110b070bee (diff) | |
feat: add support for portable-atomic, add send feature
Signed-off-by: Henry <mail@henrygressmann.de>
Diffstat (limited to 'crates/types/Cargo.toml')
| -rw-r--r-- | crates/types/Cargo.toml | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/crates/types/Cargo.toml b/crates/types/Cargo.toml index 3587143..7f701cf 100644 --- a/crates/types/Cargo.toml +++ b/crates/types/Cargo.toml @@ -12,13 +12,24 @@ categories.workspace = true [dependencies] log = { workspace = true, optional = true } +portable-atomic-util = { version = "0.2.7", default-features = false, features = ["alloc"], optional = true } postcard = { version = "1.1", default-features = false, features = ["alloc"], optional = true } -serde = { version = "1.0", default-features = false, features = ["alloc", "rc"], optional = true } +serde = { version = "1.0", default-features = false, features = ["alloc"], optional = true } [features] default = ["archive", "debug", "log", "std"] -archive = ["dep:postcard", "dep:serde"] +# support serializing and deserializing twasm archives +archive = ["dep:postcard", "dep:serde", "serde/rc", "portable-atomic-util?/serde"] + +# derive Debug for runtime and module types debug = [] + +# enable integration with the log crate log = ["dep:log"] + +# enable standard library support std = ["serde?/std"] + +# support targets without native atomic CAS +portable-atomic = ["dep:portable-atomic-util"] |
