| 1 |
[package] |
| 2 |
name = "ordermap" |
| 3 |
edition = "2024" |
| 4 |
version = "1.2.0" |
| 5 |
documentation = "https://docs.rs/ordermap/" |
| 6 |
repository = "https://github.com/indexmap-rs/ordermap" |
| 7 |
license = "Apache-2.0 OR MIT" |
| 8 |
description = "A hash table with consistent order and fast iteration." |
| 9 |
keywords = ["hashmap", "no_std"] |
| 10 |
categories = ["data-structures", "no-std"] |
| 11 |
rust-version = "1.85" |
| 12 |
|
| 13 |
[lib] |
| 14 |
bench = false |
| 15 |
|
| 16 |
[dependencies] |
| 17 |
indexmap = { version = "2.14.0", default-features = false } |
| 18 |
|
| 19 |
arbitrary = { version = "1.0", optional = true, default-features = false } |
| 20 |
quickcheck = { version = "1.0", optional = true, default-features = false } |
| 21 |
serde_core = { version = "1.0.220", optional = true, default-features = false } |
| 22 |
borsh = { version = "1.5.6", optional = true, default-features = false } |
| 23 |
rayon = { version = "1.9", optional = true } |
| 24 |
sval = { version = "2", optional = true, default-features = false } |
| 25 |
|
| 26 |
# serde v1.0.220 is the first version that released with `serde_core`. |
| 27 |
# This is required to avoid conflict with other `serde` users which may require an older version. |
| 28 |
[target.'cfg(any())'.dependencies] |
| 29 |
serde = { version = "1.0.220", default-features = false, optional = true } |
| 30 |
|
| 31 |
[dev-dependencies] |
| 32 |
itertools = "0.14" |
| 33 |
fastrand = { version = "2", default-features = false } |
| 34 |
# There's a false dependency cycle in indexmap/quickcheck with 1.1: |
| 35 |
# https://rust-lang.zulipchat.com/#narrow/channel/246057-t-cargo/topic/cycle.20with.20.60indexmap.2Fquickcheck.60/with/583611414 |
| 36 |
quickcheck = { version = "~1.0", default-features = false } |
| 37 |
fnv = "1.0" |
| 38 |
serde = { version = "1.0", default-features = false, features = ["derive"] } |
| 39 |
|
| 40 |
[features] |
| 41 |
default = ["std"] |
| 42 |
std = ["indexmap/std"] |
| 43 |
|
| 44 |
arbitrary = ["dep:arbitrary", "indexmap/arbitrary"] |
| 45 |
quickcheck = ["dep:quickcheck", "indexmap/quickcheck"] |
| 46 |
rayon = ["dep:rayon", "indexmap/rayon"] |
| 47 |
serde = ["dep:serde_core", "dep:serde", "indexmap/serde"] |
| 48 |
sval = ["dep:sval", "indexmap/sval"] |
| 49 |
borsh = ["dep:borsh", "borsh/indexmap"] |
| 50 |
|
| 51 |
[profile.bench] |
| 52 |
debug = true |
| 53 |
|
| 54 |
[package.metadata.release] |
| 55 |
allow-branch = ["main"] |
| 56 |
sign-tag = true |
| 57 |
tag-name = "{{version}}" |
| 58 |
|
| 59 |
[package.metadata.docs.rs] |
| 60 |
features = ["arbitrary", "quickcheck", "serde", "borsh", "rayon", "sval"] |
| 61 |
rustdoc-args = ["--cfg", "docsrs"] |
| 62 |
|
| 63 |
[workspace] |
| 64 |
members = ["test-nostd", "test-serde", "test-sval"] |
| 65 |
|
| 66 |
[lints.rust] |
| 67 |
private-bounds = "deny" |
| 68 |
private-interfaces = "deny" |
| 69 |
unnameable-types = "deny" |
| 70 |
unreachable-pub = "deny" |
| 71 |
unsafe-code = "deny" |
| 72 |
|
| 73 |
rust-2018-idioms = "warn" |
| 74 |
|
| 75 |
[lints.clippy] |
| 76 |
style = "allow" |