[badges.maintenance]
status = "actively-developed"
[[bench]]
harness = false
name = "basic_bench"
path = "benches/basic_bench.rs"
[[bench]]
harness = false
name = "comparison"
path = "benches/comparison.rs"
[dependencies.data-encoding]
optional = true
version = "2.9"
[dependencies.rkyv]
optional = true
version = "0.8"
[dependencies.serde]
features = ["derive"]
optional = true
version = "1"
[dev-dependencies.bitvec]
version = "1.0"
[dev-dependencies.criterion]
version = "0.7"
[dev-dependencies.num-bigint]
version = "0.4"
[dev-dependencies.postcard]
features = ["alloc"]
version = "1.0"
[dev-dependencies.proptest]
version = "1.5"
[dev-dependencies.quickcheck]
version = "1.0"
[dev-dependencies.quickcheck_macros]
version = "1.0"
[dev-dependencies.serde_json]
version = "1.0"
[dev-dependencies.serde_test]
version = "1.0"
[[example]]
name = "advanced"
path = "examples/advanced.rs"
[[example]]
name = "basic"
path = "examples/basic.rs"
[[example]]
name = "no_std"
path = "examples/no_std.rs"
[[example]]
name = "set_ops"
path = "examples/set_ops.rs"
[features]
default = ["std"]
rkyv = ["dep:rkyv"]
serde = ["dep:serde", "std", "dep:data-encoding"]
std = []
[lib]
name = "smol_bitmap"
path = "src/lib.rs"
[lints.clippy]
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_sign_loss = "allow"
inline_always = "allow"
missing_errors_doc = "allow"
similar_names = "allow"
unreadable_literal = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.correctness]
level = "deny"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.clippy.perf]
level = "warn"
priority = -1
[lints.clippy.style]
level = "warn"
priority = -1
[lints.clippy.suspicious]
level = "deny"
priority = -1
[package]
authors = ["Can Boluk <me@can.ac>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["data-structures", "algorithms", "embedded"]
description = "A space-efficient bitmap with inline storage optimization for small bitmaps"
documentation = "https://docs.rs/smol_bitmap"
edition = "2024"
exclude = [".github/", ".gitignore", "rustfmt.toml"]
homepage = "https://github.com/can1357/smol_bitmap"
keywords = ["bitmap", "bitset", "bitvector", "inline", "no-std"]
license = "MIT"
name = "smol_bitmap"
readme = "README.md"
repository = "https://github.com/can1357/smol_bitmap"
rust-version = "1.89"
version = "0.3.2"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[profile.bench]
inherits = "release"
[profile.release]
codegen-units = 1
lto = true
[[test]]
name = "core"
path = "tests/core.rs"
[[test]]
name = "integration_tests"
path = "tests/integration_tests.rs"
[[test]]
name = "prop_range"
path = "tests/prop_range.rs"
[[test]]
name = "test_bitmap_macro"
path = "tests/test_bitmap_macro.rs"
[[test]]
name = "test_resize_truncate"
path = "tests/test_resize_truncate.rs"
[[test]]
name = "test_word_ops"
path = "tests/test_word_ops.rs"