summaryrefslogtreecommitdiff
path: root/crates/types/Cargo.toml
blob: 7f701cfcdaf710b5e41f796a1dd8f1a7af2ff59c (plain)
[package]
name = "tinywasm-types"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
description = "Shared runtime, module, and archive types for TinyWasm"
readme = "README.md"
repository.workspace = true
license.workspace = true
keywords.workspace = true
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"], optional = true }

[features]
default = ["archive", "debug", "log", "std"]

# 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"]