summaryrefslogtreecommitdiff
path: root/crates/tor-persist/Cargo.toml
blob: f48c538e30ba5683cb0400153cbbc92c628e89a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
[package]
name = "tor-persist"
version = "0.10.1"
authors = ["The Tor Project, Inc.", "Nick Mathewson <[email protected]>"]
edition = "2021"
rust-version = "1.70"
license = "MIT OR Apache-2.0"
homepage = "https://gitlab.torproject.org/tpo/core/arti/-/wikis/home"
description = "Persistent state for the Arti Tor implementation"
keywords = ["tor", "arti"]
categories = ["config"]
repository = "https://gitlab.torproject.org/tpo/core/arti.git/"

[features]
# Enable the state_dir module
state-dir = ["__is_experimental", "amplify", "fslock-guard"]
# Enable testing-only APIs.  APIs under this feature are not
# covered by semver.
testing = ["__is_experimental"]

full = ["fs-mistrust/full", "tor-error/full", "fslock-guard?/full"]

experimental = ["state-dir", "testing"]
__is_experimental = []

[dependencies]
amplify = { version = "4", default-features = false, features = ["derive"], optional = true }
derive-adhoc = "0.8"
derive_more = "0.99.3"
filetime = { version = "0.2", default-features = false }
fs-mistrust = { path = "../fs-mistrust", version = "0.7.7", features = ["walkdir"] }
fslock-guard = { path = "../fslock-guard", version = "0.1.1", optional = true }
itertools = "0.12.0"
paste = "1"
sanitize-filename = "0.5.0"
serde = { version = "1.0.103", features = ["derive"] }
serde_json = "1.0.50"
thiserror = "1"
tor-error = { path = "../tor-error", version = "0.6.0", features = ["tracing"] }
tracing = "0.1.36"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
fslock = { version = "0.2.0" }

[dev-dependencies]
anyhow = { version = "1.0.23" }
derive-adhoc = "0.8"
itertools = "0.12.0"
tempfile = "3"
test-temp-dir = { version = "0.2.0", path = "../test-temp-dir" }
tracing-test = "0.2.4"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]