/ crates / tor-persist / Cargo.toml
Cargo.toml
 1  [package]
 2  name = "tor-persist"
 3  version = "0.26.0"
 4  authors = ["The Tor Project, Inc.", "Nick Mathewson <nickm@torproject.org>"]
 5  edition = "2021"
 6  rust-version = "1.77"
 7  license = "MIT OR Apache-2.0"
 8  homepage = "https://gitlab.torproject.org/tpo/core/arti/-/wikis/home"
 9  description = "Persistent state for the Arti Tor implementation"
10  keywords = ["tor", "arti"]
11  categories = ["config"]
12  repository = "https://gitlab.torproject.org/tpo/core/arti.git/"
13  
14  [features]
15  # Enable the state_dir module
16  state-dir = ["__is_experimental", "amplify", "fslock-guard"]
17  # Enable testing-only APIs.  APIs under this feature are not
18  # covered by semver.
19  testing = ["__is_experimental"]
20  
21  full = [
22      "fs-mistrust/full",
23      "tor-error/full",
24      "fslock-guard?/full",
25      "tor-basic-utils/full",
26      "tor-async-utils/full",
27      "oneshot-fused-workaround/full",
28  ]
29  
30  experimental = ["state-dir", "testing"]
31  __is_experimental = []
32  
33  [dependencies]
34  amplify = { version = "4", default-features = false, features = ["derive"], optional = true }
35  derive-deftly = "0.14"
36  derive_more = { version = "1.0.0", features = ["full"] }
37  filetime = { version = "0.2", default-features = false }
38  fs-mistrust = { path = "../fs-mistrust", version = "0.8.2", features = ["walkdir"] }
39  fslock-guard = { path = "../fslock-guard", version = "0.2.1", optional = true }
40  futures = "0.3.14"
41  itertools = "0.14.0"
42  oneshot-fused-workaround = { path = "../oneshot-fused-workaround", version = "0.2.0" }
43  paste = "1"
44  sanitize-filename = "0.6.0"
45  serde = { version = "1.0.103", features = ["derive"] }
46  serde_json = "1.0.50"
47  thiserror = "2"
48  time = { version = "0.3", features = ["std", "parsing", "macros", "formatting"] }
49  tor-async-utils = { path = "../tor-async-utils", version = "0.26.0" }
50  tor-basic-utils = { path = "../tor-basic-utils", version = "0.26.0" }
51  tor-error = { path = "../tor-error", version = "0.26.0", features = ["tracing"] }
52  tracing = "0.1.36"
53  void = "1"
54  
55  [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
56  fslock = { version = "0.2.0" }
57  
58  [dev-dependencies]
59  anyhow = { version = "1.0.23" }
60  derive-deftly = "0.14"
61  humantime = "2"
62  itertools = "0.14.0"
63  tempfile = "3"
64  test-temp-dir = { version = "0.3.0", path = "../test-temp-dir" }
65  tracing-test = "0.2.4"
66  
67  [package.metadata.docs.rs]
68  all-features = true