18dedcc30b
Because of the random ordering of HashMap, if you have overlapping token permissions, it is possible to randomly pick one that leads to some operation working intermittently (see https://github.com/zhaofengli/attic/issues/133 for an example of this). By using an IndexMap instead, we make "iteration order of the key-value pairs [...] independent of the hash values of the keys" (from the indexmap crate docs [1]), which leads to more predictable behavior. [1]: https://docs.rs/indexmap/latest/indexmap/
21 lines
467 B
TOML
21 lines
467 B
TOML
[package]
|
|
name = "attic-token"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
attic = { path = "../attic", default-features = false }
|
|
|
|
base64 = "0.21.2"
|
|
chrono = "0.4.24"
|
|
displaydoc = "0.2.4"
|
|
indexmap = { version = "2.2.6", features = ["serde"] }
|
|
jwt-simple = "0.11.5"
|
|
lazy_static = "1.4.0"
|
|
regex = "1.8.3"
|
|
serde = "1.0.163"
|
|
serde_with = "3.0.0"
|
|
tracing = "0.1.37"
|