summaryrefslogtreecommitdiff
path: root/crates/tor-cert/Cargo.toml
blob: 8be24fa6915bdcd3a5dba0dc52b922ccc8591067 (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
56
57
58
59
60
[package]
name = "tor-cert"
version = "0.37.0"
authors = ["The Tor Project, Inc.", "Nick Mathewson <[email protected]>"]
edition = "2024"
rust-version = "1.86"
license = "MIT OR Apache-2.0"
homepage = "https://gitlab.torproject.org/tpo/core/arti/-/wikis/home"
description = "Non-standard certificate formats used by Tor"
keywords = ["tor", "arti", "certificate"]
categories = ["parser-implementations"]
repository = "https://gitlab.torproject.org/tpo/core/arti.git/"
[package.metadata.docs.rs]
all-features = true

[features]
default = []
experimental = ["encode", "experimental-api"]
encode = ["derive_builder", "__is_experimental"]
full = [
    "caret/full",
    "tor-bytes/full",
    "tor-checkable/full",
    "tor-llcrypto/full",
    "x509",
    "tor-error/full",
]
x509 = ["ecdsa", "p256", "pem", "rand", "rsa", "tor-llcrypto/rng-compat", "x509-cert"]
# Enable experimental APIs that are not yet officially supported.
#
# These APIs are not covered by semantic versioning.  Using this
# feature voids your "semver warrantee".

experimental-api = ["__is_experimental"]

__is_experimental = []

[dependencies]
caret = { path = "../caret", version = "0.8.0" }
derive_builder = { version = "0.11.2", package = "derive_builder_fork_arti", optional = true }
derive_more = { version = "2.0.1", features = ["full"] }
digest = "0.10.0"
ecdsa = { version = "0.16.9", features = ["der", "pkcs8", "signing", "verifying"], optional = true }
p256 = { version = "0.13.2", features = ["ecdsa"], optional = true }
pem = { version = "3", optional = true }
rand = { version = "0.9.1", optional = true }
rsa = { version = "0.9.2", features = ["sha2"], optional = true }
thiserror = "2"
tor-bytes = { path = "../tor-bytes", version = "0.37.0" }
tor-checkable = { path = "../tor-checkable", version = "0.37.0" }
tor-error = { path = "../tor-error", version = "0.37.0" }
tor-llcrypto = { path = "../tor-llcrypto", version = "0.37.0" }
x509-cert = { version = "0.2.5", features = ["builder", "hazmat"], optional = true }

[dev-dependencies]
base64ct = "1.5.1"
hex-literal = "1.0"
humantime = "2"
rand = "0.9.1"
tor-basic-utils = { path = "../tor-basic-utils", version = "0.37.0" }