[package]
edition = "2024"
rust-version = "1.85"
name = "nexus-bits"
version = "0.4.4"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Bit field packing for integer IDs"
readme = "README.md"
keywords = [
"bitfield",
"packed",
"no-std",
"low-latency",
]
categories = [
"no-std",
"data-structures",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Abso1ut3Zer0/nexus"
resolver = "2"
[features]
default = ["derive"]
derive = ["dep:nexus-bits-derive"]
[lib]
name = "nexus_bits"
path = "src/lib.rs"
[[test]]
name = "derive_enum"
path = "tests/derive_enum.rs"
[[test]]
name = "derive_struct"
path = "tests/derive_struct.rs"
[[test]]
name = "field_elision"
path = "tests/field_elision.rs"
[[test]]
name = "int_enum"
path = "tests/int_enum.rs"
[[test]]
name = "tests"
path = "tests/tests.rs"
[dependencies.nexus-bits-derive]
version = "0.4"
optional = true
[lints.clippy]
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_ptr_alignment = "allow"
cast_sign_loss = "allow"
cognitive_complexity = "allow"
doc_markdown = "allow"
inline_always = "allow"
manual_range_contains = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_fields_in_debug = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_range_loop = "allow"
ptr_as_ptr = "allow"
redundant_pub_crate = "allow"
ref_as_ptr = "allow"
return_self_not_must_use = "allow"
significant_drop_tightening = "allow"
similar_names = "allow"
too_many_lines = "allow"
uninlined_format_args = "allow"
use_self = "allow"
wildcard_imports = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
unsafe_op_in_unsafe_fn = "warn"