mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +00:00
Previously `alloc` implicitly activated `zeroize` via `zeroize/alloc`. This commit switches to weak feature activation as added in Rust 1.60, only activating `zeroize/alloc` if the `zeroize` dependency is explicitly activated (which it is by default).
75 lines
2.5 KiB
TOML
75 lines
2.5 KiB
TOML
[package]
|
|
name = "curve25519-dalek"
|
|
# Before incrementing:
|
|
# - update CHANGELOG
|
|
# - update html_root_url
|
|
# - update README if required by semver
|
|
# - if README was updated, also update module documentation in src/lib.rs
|
|
version = "4.0.0-pre.5"
|
|
edition = "2021"
|
|
rust-version = "1.60.0"
|
|
authors = ["Isis Lovecruft <isis@patternsinthevoid.net>",
|
|
"Henry de Valence <hdevalence@hdevalence.ca>"]
|
|
readme = "README.md"
|
|
license = "BSD-3-Clause"
|
|
repository = "https://github.com/dalek-cryptography/curve25519-dalek"
|
|
homepage = "https://github.com/dalek-cryptography/curve25519-dalek"
|
|
documentation = "https://docs.rs/curve25519-dalek"
|
|
categories = ["cryptography", "no-std"]
|
|
keywords = ["cryptography", "crypto", "ristretto", "curve25519", "ristretto255"]
|
|
description = "A pure-Rust implementation of group operations on ristretto255 and Curve25519"
|
|
exclude = [
|
|
"**/.gitignore",
|
|
".gitignore",
|
|
".travis.yml",
|
|
]
|
|
|
|
[package.metadata.docs.rs]
|
|
rustdoc-args = [
|
|
"--html-in-header", "docs/assets/rustdoc-include-katex-header.html",
|
|
"--cfg", "docsrs",
|
|
]
|
|
rustc-args = ["--cfg", "curve25519_dalek_backend=\"simd\""]
|
|
features = ["serde", "rand_core", "digest"]
|
|
|
|
[badges]
|
|
travis-ci = { repository = "dalek-cryptography/curve25519-dalek", branch = "master"}
|
|
|
|
[dev-dependencies]
|
|
sha2 = { version = "0.10", default-features = false }
|
|
bincode = "1"
|
|
criterion = { version = "0.4.0", features = ["html_reports"] }
|
|
hex = "0.4.2"
|
|
rand = "0.8"
|
|
rand_core = { version = "0.6", default-features = false, features = ["getrandom"] }
|
|
|
|
[build-dependencies]
|
|
platforms = "3.0.2"
|
|
|
|
[[bench]]
|
|
name = "dalek_benchmarks"
|
|
harness = false
|
|
required-features = ["rand_core"]
|
|
|
|
[dependencies]
|
|
cfg-if = "1"
|
|
rand_core = { version = "0.6.4", default-features = false, optional = true }
|
|
digest = { version = "0.10", default-features = false, optional = true }
|
|
subtle = { version = "2.3.0", default-features = false }
|
|
serde = { version = "1.0", default-features = false, optional = true, features = ["derive"] }
|
|
zeroize = { version = "1", default-features = false, optional = true }
|
|
|
|
[target.'cfg(curve25519_dalek_backend = "fiat")'.dependencies]
|
|
fiat-crypto = "0.1.6"
|
|
|
|
# The original packed_simd package was orphaned, see
|
|
# https://github.com/rust-lang/packed_simd/issues/303#issuecomment-701361161
|
|
[target.'cfg(curve25519_dalek_backend = "simd")'.dependencies]
|
|
packed_simd = { version = "0.3.4", package = "packed_simd_2", features = ["into_bits"] }
|
|
|
|
[features]
|
|
default = ["alloc", "zeroize"]
|
|
alloc = ["zeroize?/alloc"]
|
|
|
|
[profile.dev]
|
|
opt-level = 2
|