[workspace]
members = [".", "bitflagset-derive"]
[workspace.package]
version = "0.0.4"
edition = "2024"
rust-version = "1.86.0"
license = "MIT"
repository = "https://github.com/youknowone/bitflagset"
[package]
name = "bitflagset"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
description = "Enum and positional typed bitsets with Set API"
[lints.clippy]
missing_safety_doc = "deny"
undocumented_unsafe_blocks = "allow"
unnecessary_safety_comment = "deny"
unnecessary_safety_doc = "deny"
[lints.rust]
unexpected_cfgs = { level = "forbid" }
[features]
default = ["std"]
std = ["alloc", "num-traits/std", "num-integer/std"]
alloc = []
bitvec = ["dep:bitvec"]
bitflags = ["dep:bitflags"]
derive = ["dep:bitflagset-derive"]
[dependencies]
bitflagset-derive = { version = "0.0.4", path = "bitflagset-derive", optional = true }
bitflags = { version = "2.6", optional = true }
bitvec = { version = "1.0.1", optional = true }
num-integer = { version = "0.1.44", default-features = false }
num-traits = { version = "0.2.15", default-features = false }
radium = "1.1"
ref-cast = "1.0.25"
[dev-dependencies]
bit-set = "0.10"
bit-vec = "0.9"
bitflags = "2.6"
bitvec = "1.0.1"
criterion = "0.5"
proptest = "1.4.0"
rand = "0.8.5"
[[bench]]
name = "compare"
harness = false
[[bench]]
name = "atomic"
harness = false
[[bench]]
name = "vs_bitflags"
harness = false