[package] name = "ordermap" edition = "2024" version = "1.2.0" documentation = "https://docs.rs/ordermap/" repository = "https://github.com/indexmap-rs/ordermap" license = "Apache-2.0 OR MIT" description = "A hash table with consistent order and fast iteration." keywords = ["hashmap", "no_std"] categories = ["data-structures", "no-std"] rust-version = "1.85" [lib] bench = false [dependencies] indexmap = { version = "2.14.0", default-features = false } arbitrary = { version = "1.0", optional = true, default-features = false } quickcheck = { version = "1.0", optional = true, default-features = false } serde_core = { version = "1.0.220", optional = true, default-features = false } borsh = { version = "1.5.6", optional = true, default-features = false } rayon = { version = "1.9", optional = true } sval = { version = "2", optional = true, default-features = false } # serde v1.0.220 is the first version that released with `serde_core`. # This is required to avoid conflict with other `serde` users which may require an older version. [target.'cfg(any())'.dependencies] serde = { version = "1.0.220", default-features = false, optional = true } [dev-dependencies] itertools = "0.14" fastrand = { version = "2", default-features = false } # There's a false dependency cycle in indexmap/quickcheck with 1.1: # https://rust-lang.zulipchat.com/#narrow/channel/246057-t-cargo/topic/cycle.20with.20.60indexmap.2Fquickcheck.60/with/583611414 quickcheck = { version = "~1.0", default-features = false } fnv = "1.0" serde = { version = "1.0", default-features = false, features = ["derive"] } [features] default = ["std"] std = ["indexmap/std"] arbitrary = ["dep:arbitrary", "indexmap/arbitrary"] quickcheck = ["dep:quickcheck", "indexmap/quickcheck"] rayon = ["dep:rayon", "indexmap/rayon"] serde = ["dep:serde_core", "dep:serde", "indexmap/serde"] sval = ["dep:sval", "indexmap/sval"] borsh = ["dep:borsh", "borsh/indexmap"] [profile.bench] debug = true [package.metadata.release] allow-branch = ["main"] sign-tag = true tag-name = "{{version}}" [package.metadata.docs.rs] features = ["arbitrary", "quickcheck", "serde", "borsh", "rayon", "sval"] rustdoc-args = ["--cfg", "docsrs"] [workspace] members = ["test-nostd", "test-serde", "test-sval"] [lints.rust] private-bounds = "deny" private-interfaces = "deny" unnameable-types = "deny" unreachable-pub = "deny" unsafe-code = "deny" rust-2018-idioms = "warn" [lints.clippy] style = "allow"