[package]
edition = "2024"
name = "byteable"
version = "0.33.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust crate for convenient serialization and deserialization of byte-oriented data."
readme = "README.md"
license = "MIT"
repository = "https://github.com/PaulDepping/byteable"
[features]
all = [
"derive",
"tokio",
"std",
"ordered-float",
"embedded-io",
"embedded-io-async",
"bitflags",
"heapless",
"arrayvec",
"tinyvec",
"defmt",
]
alloc = []
arrayvec = ["dep:arrayvec"]
bitflags = ["dep:bitflags"]
default = [
"derive",
"std",
]
defmt = ["dep:defmt"]
derive = ["dep:byteable_derive"]
embedded-io = [
"dep:embedded-io",
"byteable_derive?/embedded-io",
]
embedded-io-async = [
"dep:embedded-io-async",
"embedded-io",
"byteable_derive?/embedded-io-async",
]
heapless = ["dep:heapless"]
ordered-float = ["dep:ordered-float"]
std = [
"alloc",
"byteable_derive?/std",
"ordered-float?/std",
]
tinyvec = ["dep:tinyvec"]
tokio = [
"dep:tokio",
"std",
"byteable_derive?/tokio",
]
[lib]
name = "byteable"
path = "src/lib.rs"
[[example]]
name = "file_format"
path = "examples/file_format.rs"
required-features = [
"std",
"derive",
]
[[example]]
name = "getting_started"
path = "examples/getting_started.rs"
required-features = [
"std",
"derive",
]
[[example]]
name = "network_protocol"
path = "examples/network_protocol.rs"
required-features = [
"std",
"derive",
]
[[test]]
name = "arrayvec"
path = "tests/arrayvec.rs"
[[test]]
name = "bitflags"
path = "tests/bitflags.rs"
[[test]]
name = "defmt"
path = "tests/defmt.rs"
[[test]]
name = "derive_enums"
path = "tests/derive_enums.rs"
[[test]]
name = "derive_field_enums"
path = "tests/derive_field_enums.rs"
[[test]]
name = "derive_structs"
path = "tests/derive_structs.rs"
[[test]]
name = "eio"
path = "tests/eio.rs"
[[test]]
name = "eio_async"
path = "tests/eio_async.rs"
[[test]]
name = "heapless"
path = "tests/heapless.rs"
[[test]]
name = "io_async"
path = "tests/io_async.rs"
[[test]]
name = "io_sync"
path = "tests/io_sync.rs"
[[test]]
name = "ordered_float"
path = "tests/ordered_float.rs"
[[test]]
name = "playground"
path = "tests/playground.rs"
[[test]]
name = "tinyvec"
path = "tests/tinyvec.rs"
[[test]]
name = "try_transparent"
path = "tests/try_transparent.rs"
[[test]]
name = "type_impls"
path = "tests/type_impls.rs"
[[bench]]
name = "benchmarks"
path = "benches/benchmarks.rs"
harness = false
[dependencies.arrayvec]
version = "0.7"
optional = true
default-features = false
[dependencies.bitflags]
version = "2"
optional = true
[dependencies.byteable_derive]
version = "0.20.0"
optional = true
[dependencies.defmt]
version = "1"
optional = true
[dependencies.embedded-io]
version = "0.7"
optional = true
[dependencies.embedded-io-async]
version = "0.7"
optional = true
[dependencies.heapless]
version = "0.8"
optional = true
[dependencies.ordered-float]
version = "5"
optional = true
default-features = false
[dependencies.tinyvec]
version = "1"
optional = true
[dependencies.tokio]
version = "1"
features = ["io-util"]
optional = true
[dev-dependencies.criterion]
version = "0.8"
features = ["html_reports"]
[dev-dependencies.thiserror]
version = "2.0.18"
[dev-dependencies.tokio]
version = "1"
features = ["full"]