[package]
edition = "2021"
rust-version = "1.87"
name = "heapless"
version = "0.9.3"
authors = [
"Jorge Aparicio <jorge@japaric.io>",
"Per Lindgren <per.lindgren@ltu.se>",
"Emil Fresk <emil.fresk@gmail.com>",
]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "`static` friendly data structures that don't require dynamic memory allocation"
documentation = "https://docs.rs/heapless"
readme = "README.md"
keywords = [
"static",
"no-heap",
]
categories = [
"data-structures",
"no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/rust-embedded/heapless"
[package.metadata.docs.rs]
features = [
"bytes",
"ufmt",
"serde",
"defmt",
"mpmc_large",
"portable-atomic-critical-section",
"alloc",
]
targets = ["i686-unknown-linux-gnu"]
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
alloc = []
bytes = ["dep:bytes"]
defmt = ["dep:defmt"]
"embedded-io-v0.7" = ["dep:embedded-io"]
mpmc_large = []
nightly = []
portable-atomic = ["dep:portable-atomic"]
portable-atomic-critical-section = [
"dep:portable-atomic",
"portable-atomic",
"portable-atomic?/critical-section",
]
portable-atomic-unsafe-assume-single-core = [
"dep:portable-atomic",
"portable-atomic",
"portable-atomic?/unsafe-assume-single-core",
]
serde = ["dep:serde_core"]
ufmt = [
"dep:ufmt",
"dep:ufmt-write",
]
zeroize = ["dep:zeroize"]
[lib]
name = "heapless"
path = "src/lib.rs"
[[test]]
name = "cpass"
path = "tests/cpass.rs"
[[test]]
name = "tsan"
path = "tests/tsan.rs"
[dependencies.bytes]
version = "1"
optional = true
default-features = false
[dependencies.defmt]
version = "1.0.1"
optional = true
[dependencies.embedded-io]
version = "0.7"
optional = true
[dependencies.hash32]
version = "0.3.0"
[dependencies.portable-atomic]
version = "1.0"
optional = true
[dependencies.serde_core]
version = "1"
optional = true
default-features = false
[dependencies.ufmt]
version = "0.2"
optional = true
[dependencies.ufmt-write]
version = "0.1"
optional = true
[dependencies.zeroize]
version = "1.8"
features = ["derive"]
optional = true
default-features = false
[dev-dependencies.critical-section]
version = "1.1"
features = ["std"]
[dev-dependencies.static_assertions]
version = "1.1.0"
[target.'cfg(any(target_arch = "arm", target_pointer_width = "32", target_pointer_width = "64"))'.dependencies.stable_deref_trait]
version = "1"
default-features = false