-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathCargo.toml
More file actions
55 lines (51 loc) · 2.75 KB
/
Cargo.toml
File metadata and controls
55 lines (51 loc) · 2.75 KB
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 = "rustls-rustcrypto"
description = """
Pure Rust cryptography provider for the Rustls TLS library using algorithm implementations from the
RustCrypto organization
"""
version = "0.0.2-alpha"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
readme = "README.md"
repository = "https://github.com/RustCrypto/rustls-rustcrypto"
categories = ["cryptography", "no-std"]
keywords = ["rustls", "tls"]
edition = "2021"
rust-version = "1.75"
resolver = "1" # Hack to enable the `custom` feature of `getrandom`
# Ensure all dependencies + feats are mapped to crate features for correct usage
# default features often have std breaking no_std and potentially other unwanted
[dependencies]
aead = { version = "0.6.0-rc.10", default-features = false }
aes-gcm = { version = "0.11.0-rc.3", default-features = false, features = ["aes", "alloc"] }
chacha20poly1305 = { version = "0.11.0-rc.3", default-features = false }
crypto-common = { version = "0.2", default-features = false }
der = { version = "0.8.0-rc.10", default-features = false }
digest = { version = "0.11.0-rc.11", default-features = false }
ecdsa = { version = "0.17.0-rc.16", default-features = false, features = ["alloc"] }
ed25519-dalek = { version = "3.0.0-pre.6", default-features = false, features = ["pkcs8"] }
getrandom = { version = "0.4", default-features = false, features = ["sys_rng"] }
hmac = { version = "0.13.0-rc.5", default-features = false }
p256 = { version = "0.14.0-rc.7", default-features = false, features = ["pem", "ecdsa", "ecdh"] }
p384 = { version = "0.14.0-rc.7", default-features = false, features = ["pem", "ecdsa", "ecdh"] }
paste = { version = "1", default-features = false }
pkcs8 = { version = "0.11.0-rc.10", default-features = false }
pki-types = { package = "rustls-pki-types", version = "1", default-features = false }
rsa = { version = "0.10.0-rc.15", default-features = false, features = ["sha2", "encoding"] }
rustls = { version = "0.23", default-features = false }
sec1 = { version = "0.8.0-rc.13", default-features = false }
sha2 = { version = "0.11.0-rc.5", default-features = false }
signature = { version = "3.0.0-rc.10", default-features = false }
x25519-dalek = { version = "3.0.0-pre.6", default-features = false }
[features]
default = ["std", "tls12", "zeroize"]
logging = ["rustls/logging"]
tls12 = ["rustls/tls12"]
# Only enable feature in upstream if there is an overall effect e.g. aead/alloc in-place
# zeroize is another typical that can be turned off
# TODO: go through all of these that what gets exposed re: std error type
std = ["alloc", "pki-types/std", "rustls/std"]
# TODO: go through all of these to ensure to_vec etc. impls are exposed
alloc = ["pki-types/alloc", "aead/alloc", "ed25519-dalek/alloc"]
zeroize = ["ed25519-dalek/zeroize", "x25519-dalek/zeroize"]