/
Cargo.toml
50 lines (45 loc) · 2.02 KB
/
Cargo.toml
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
[package]
name = "elliptic-curve"
description = """
General purpose Elliptic Curve Cryptography (ECC) support, including types
and traits for representing various elliptic curve forms, scalars, points,
and public/secret keys composed thereof.
"""
version = "0.10.5" # Also update html_root_url in lib.rs when bumping this
authors = ["RustCrypto Developers"]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/RustCrypto/traits/tree/master/elliptic-curve"
readme = "README.md"
edition = "2018"
categories = ["cryptography", "no-std"]
keywords = ["crypto", "ecc", "elliptic", "weierstrass"]
[dependencies]
crypto-bigint = { version = "0.2.2", features = ["generic-array"] }
generic-array = { version = "0.14", default-features = false }
rand_core = { version = "0.6", default-features = false }
subtle = { version = "=2.4", default-features = false }
# optional dependencies
base64ct = { version = "1", optional = true, default-features = false }
ff = { version = "0.10", optional = true, default-features = false }
group = { version = "0.10", optional = true, default-features = false }
hex-literal = { version = "0.3", optional = true }
pkcs8 = { version = "0.7", optional = true }
serde = { version = "1", optional = true, default-features = false }
serde_json = { version = "1", optional = true, default-features = false, features = ["alloc"] }
zeroize = { version = "=1.4", optional = true, default-features = false }
[dev-dependencies]
hex-literal = "0.3"
[features]
default = ["arithmetic"]
alloc = [] # todo: activate `group/alloc` when weak feature activation is available
arithmetic = ["crypto-bigint/zeroize", "ff", "group", "zeroize"]
bits = ["arithmetic", "ff/bits"]
dev = ["arithmetic", "hex-literal", "pem", "zeroize"]
ecdh = ["arithmetic", "zeroize"]
hazmat = []
jwk = ["alloc", "base64ct/alloc", "serde", "serde_json", "zeroize/alloc"]
pem = ["alloc", "pkcs8/pem"]
std = ["alloc", "rand_core/std"]
[package.metadata.docs.rs]
features = ["arithmetic", "ecdh", "jwk", "pem", "std"]
rustdoc-args = ["--cfg", "docsrs"]