[dependencies.fixedbitset]
version = "0.5"
[dependencies.intid]
package = "intid-core"
version = "0.3.2"
[dependencies.petgraph_0_8]
optional = true
package = "petgraph"
version = "0.8"
[dependencies.serde]
optional = true
version = "1"
[dev-dependencies.intid-derive]
version = "0.3.2"
[dev-dependencies.itertools]
version = "0.14"
[dev-dependencies.serde]
version = "1"
[dev-dependencies.serde_derive]
version = "1"
[dev-dependencies.serde_test]
version = "1"
[features]
alloc = []
nightly = []
petgraph_0_8 = ["dep:petgraph_0_8"]
serde = ["dep:serde"]
std = []
[lib]
name = "idmap"
path = "src/lib.rs"
[lints.clippy]
alloc_instead_of_core = "deny"
cast-lossless = "allow"
cast-possible-truncation = "deny"
cast-possible-wrap = "deny"
cast-precision-loss = "deny"
cast-ptr-alignment = "deny"
cast-sign-loss = "deny"
char-lit-as-u8 = "deny"
fn-to-numeric-cast = "deny"
fn-to-numeric-cast-any = "deny"
fn-to-numeric-cast-with-truncation = "deny"
items-after-statements = "allow"
multiple_unsafe_ops_per_block = "deny"
must-use-candidate = "allow"
ptr_as_ptr = "allow"
redundant_test_prefix = "warn"
return_self_not_must_use = "allow"
std_instead_of_alloc = "deny"
std_instead_of_core = "deny"
too-many-lines = "allow"
undocumented_unsafe_blocks = "deny"
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing-docs = "deny"
unsafe-op-in-unsafe-fn = "deny"
[lints.rust.unexpected_cfgs]
check-cfg = ["cfg(intid_derive_use_expander)"]
level = "warn"
priority = 0
[package]
authors = ["Techcable <git@techcable.net>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["data-structures", "rust-patterns"]
description = "Efficient maps of integer id keys to values, backed by an underlying `Vec`"
edition = "2021"
keywords = ["idmap", "table", "id", "array", "map"]
license = "MIT OR Apache-2.0"
name = "idmap"
readme = "README.md"
repository = "https://github.com/DuckLogic/intid.rs"
rust-version = "1.65"
version = "0.3.2"
[package.metadata.docs.rs]
all-features = true
[[test]]
name = "direct"
path = "tests/direct.rs"
[[test]]
name = "enum_map"
path = "tests/enum_map.rs"
[[test]]
name = "set"
path = "tests/set.rs"