small-collections 0.6.0

A collection of data structures optimized for small-buffer scenarios that reside on the stack and seamlessly spill to the heap.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.85.0"
name = "small-collections"
version = "0.6.0"
authors = ["Dilip Vamsi"]
build = false
exclude = [
    ".github/*",
    "Makefile",
    "doc-rules.md",
    "*.py",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A collection of data structures optimized for small-buffer scenarios that reside on the stack and seamlessly spill to the heap."
documentation = "https://docs.rs/small-collections"
readme = "README.md"
keywords = [
    "stack",
    "small-object",
    "no_std",
    "heapless",
    "lru",
]
categories = [
    "data-structures",
    "no-std",
    "memory-management",
]
license = "MIT"
repository = "https://github.com/dilipvamsi/small-collections"

[features]
bitvec = ["dep:bitvec"]
default = ["full"]
full = [
    "lru",
    "bitvec",
    "ordered",
]
lru = ["dep:lru"]
ordered = ["dep:ordermap"]

[lib]
name = "small_collections"
path = "src/lib.rs"

[[bench]]
name = "bitvec"
path = "benches/bitvec.rs"
harness = false
required-features = ["bitvec"]

[[bench]]
name = "cache"
path = "benches/cache.rs"
harness = false
required-features = ["lru"]

[[bench]]
name = "deque"
path = "benches/deque.rs"
harness = false

[[bench]]
name = "heap"
path = "benches/heap.rs"
harness = false

[[bench]]
name = "heapless_bitvec"
path = "benches/heapless_bitvec.rs"
harness = false
required-features = ["bitvec"]

[[bench]]
name = "heapless_btree"
path = "benches/heapless_btree.rs"
harness = false

[[bench]]
name = "heapless_cache"
path = "benches/heapless_cache.rs"
harness = false
required-features = ["lru"]

[[bench]]
name = "heapless_linear_cache"
path = "benches/heapless_linear_cache.rs"
harness = false
required-features = ["lru"]

[[bench]]
name = "heapless_ordered_map"
path = "benches/heapless_ordered_map.rs"
harness = false
required-features = ["ordered"]

[[bench]]
name = "map"
path = "benches/map.rs"
harness = false

[[bench]]
name = "string"
path = "benches/string.rs"
harness = false

[[bench]]
name = "vec"
path = "benches/vec.rs"
harness = false

[dependencies.bitvec]
version = "1.0.1"
optional = true

[dependencies.fnv]
version = "1.0.7"

[dependencies.hashbrown]
version = "0.16.1"

[dependencies.heapless]
version = "0.9.2"

[dependencies.lru]
version = "0.12.5"
optional = true

[dependencies.ordermap]
version = "1.1.0"
optional = true

[dev-dependencies.criterion]
version = "0.5.1"