[package] name = "cody-c" version = "0.4.0" edition = "2021" authors = ["Jad K. Haddad "] license = "MIT OR Apache-2.0" readme = "README.md" description = "A simple and zerocopy codec for encoding and decoding data in no_std environments." repository = "https://github.com/JadKHaddad/Cody-C" keywords = ["codec", "no_std", "embedded", "encode", "decode"] [features] default = ["char-fmt"] std = ["bincode/std", "futures/std"] tokio = ["dep:tokio", "dep:tokio-util"] futures-io = ["futures/std"] embedded-io-async = ["dep:embedded-io-async"] bincode = ["dep:bincode"] log = ["dep:log"] tracing = ["dep:tracing"] defmt = ["dep:defmt"] pretty-hex-fmt = [] char-fmt = [] buffer-early-shift = [] demo = [ "dep:zerocopy", "dep:serde", "dep:serde-json-core", "dep:derive_more", "dep:crc32fast", ] [dependencies] tokio = { version = "1.41.0", default-features = false, features = [ "io-util", ], optional = true } tokio-util = { version = "0.7.12", default-features = false, features = [ "codec", ], optional = true } embedded-io-async = { version = "0.6.1", optional = true } log = { version = "0.4.22", default-features = false, optional = true } tracing = { version = "0.1.40", default-features = false, optional = true } defmt = { version = "0.3.6", default-features = false, optional = true } futures = { version = "0.3.31", default-features = false } heapless = { version = "0.8.0", default-features = false } bincode = { version = "2.0.0-rc.3", default-features = false, optional = true } zerocopy = { version = "0.8.1", features = ["derive"], optional = true } serde = { version = "1.0.214", default-features = false, features = [ "derive", ], optional = true } serde-json-core = { version = "0.6.0", optional = true } derive_more = { version = "1", default-features = false, features = [ "from", ], optional = true } crc32fast = { version = "1.4.2", default-features = false, optional = true } [dev-dependencies] tokio = { version = "1", features = ["full"] } tracing = { version = "0.1.40", default-features = false } tracing-subscriber = { version = "0.3.18", features = ["env-filter"] } heapless = { version = "0.8.0", default-features = false, features = ["serde"] } serde = { version = "1.0.214", default-features = false, features = ["derive"] } bincode = { version = "2.0.0-rc.3", default-features = false, features = [ "derive", "std", "serde", ] } [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg", "docsrs"]