[package]
edition = "2024"
rust-version = "1.87.0"
name = "ecore"
version = "0.10.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "no_std bit-level integer types, bitfield structs/enums, ranged integers, and enum maps"
documentation = "https://docs.rs/ecore"
readme = "README.md"
keywords = [
"bitfield",
"bitint",
"no-std",
"enum-map",
"ranged-int",
]
categories = [
"embedded",
"no-std",
"data-structures",
]
license = "MIT"
repository = "https://github.com/pbl-pw/ecore"
[features]
bitfld = ["bitint"]
bitint = ["dep:seq-macro"]
default = [
"bitint",
"bitfld",
"ranged-int",
]
ranged-int = [
"bitint",
"bitfld",
]
varint = []
[lib]
name = "ecore"
path = "src/lib.rs"
[[test]]
name = "bitfld"
path = "tests/bitfld.rs"
[[test]]
name = "bitint"
path = "tests/bitint.rs"
[[test]]
name = "cint_cast"
path = "tests/cint_cast.rs"
[[test]]
name = "int_cast"
path = "tests/int_cast.rs"
[[test]]
name = "range"
path = "tests/range.rs"
[dependencies.bytemuck]
version = "1"
features = [
"derive",
"min_const_generics",
"const_zeroed",
]
[dependencies.const-default]
version = "1"
features = ["derive"]
default-features = false
[dependencies.ecore-macro]
version = "0.10.0"
[dependencies.seq-macro]
version = "0"
optional = true
[dev-dependencies.rand]
version = "0"