mirror of
https://github.com/saymrwulf/anza-cryptography-source.git
synced 2026-09-04 20:24:04 +00:00
* remove README.md in the syscall directory * use workspace dependency in `bls12-381` * add `workspace.package` information * use 2021 edition for bls12-381 * inherit workspace.package for `ed25519-pokos` * cargo fmt
91 lines
2.7 KiB
TOML
91 lines
2.7 KiB
TOML
[package]
|
|
name = "solana-ed25519"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
rust-version = "1.85.0"
|
|
authors = [
|
|
"Isis Lovecruft <isis@patternsinthevoid.net>",
|
|
"Henry de Valence <hdevalence@hdevalence.ca>",
|
|
"Anza Maintainers <maintainers@anza.xyz>",
|
|
]
|
|
readme = "README.md"
|
|
license = "BSD-3-Clause"
|
|
categories = ["cryptography", "no-std"]
|
|
keywords = ["cryptography", "crypto", "ristretto", "curve25519", "ristretto255"]
|
|
description = "A pure-Rust implementation of group operations on ristretto255 and Curve25519, with HEEA scalar decomposition (forked from curve25519-dalek)"
|
|
exclude = ["**/.gitignore", ".gitignore"]
|
|
repository = { workspace = true }
|
|
homepage = { workspace = true }
|
|
|
|
# Keep the Rust library name as "curve25519" so that all existing `use curve25519::…`
|
|
# references in doc-tests, dependent crates, and source files remain valid.
|
|
[lib]
|
|
name = "curve25519"
|
|
|
|
[package.metadata.docs.rs]
|
|
rustdoc-args = [
|
|
"--html-in-header",
|
|
"docs/assets/rustdoc-include-katex-header.html",
|
|
"--cfg",
|
|
"docsrs",
|
|
]
|
|
all-features = true
|
|
|
|
[dev-dependencies]
|
|
bincode.workspace = true
|
|
criterion.workspace = true
|
|
ed25519-dalek.workspace = true
|
|
ed25519-zebra.workspace = true
|
|
hex.workspace = true
|
|
proptest.workspace = true
|
|
rand.workspace = true
|
|
|
|
[build-dependencies]
|
|
rustc_version.workspace = true
|
|
|
|
[[bench]]
|
|
name = "dalek_benchmarks"
|
|
harness = false
|
|
required-features = ["alloc"]
|
|
|
|
[dependencies]
|
|
cfg-if.workspace = true
|
|
ed25519.workspace = true
|
|
ff = { workspace = true, optional = true }
|
|
group = { workspace = true, optional = true }
|
|
rand_core = { workspace = true, optional = true }
|
|
digest = { workspace = true, optional = true }
|
|
hashbrown.workspace = true
|
|
der = { workspace = true, optional = true }
|
|
pkcs8 = { workspace = true, optional = true }
|
|
sha2.workspace = true
|
|
subtle = { workspace = true, features = ["const-generics"] }
|
|
serde = { workspace = true, optional = true }
|
|
zeroize = { workspace = true, optional = true }
|
|
|
|
[target.'cfg(target_arch = "x86_64")'.dependencies]
|
|
cpufeatures = { workspace = true }
|
|
curve25519-dalek-derive = { workspace = true }
|
|
|
|
[features]
|
|
default = ["alloc", "precomputed-tables", "zeroize", "rand_core", "digest"]
|
|
alloc = ["zeroize?/alloc"]
|
|
precomputed-tables = []
|
|
legacy_compatibility = []
|
|
rand_core = ["dep:rand_core"]
|
|
std = ["alloc"]
|
|
group = ["dep:group", "rand_core"]
|
|
group-bits = ["group", "ff/bits"]
|
|
digest = ["dep:digest"]
|
|
lizard = ["digest"]
|
|
pkcs8 = ["dep:pkcs8", "ed25519/pkcs8", "alloc"]
|
|
pem = ["pkcs8", "dep:der", "ed25519/pem"]
|
|
|
|
[lints.rust.unexpected_cfgs]
|
|
level = "warn"
|
|
check-cfg = [
|
|
'cfg(allow_unused_unsafe)',
|
|
'cfg(curve25519_backend, values("simd"))',
|
|
'cfg(curve25519_diagnostics, values("build"))',
|
|
'cfg(curve25519_bits, values("64"))',
|
|
]
|