-
Notifications
You must be signed in to change notification settings - Fork 2
/
Cargo.toml
39 lines (36 loc) · 1.3 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
[package]
name = "doughnut_rs"
version = "0.5.1"
authors = ["Centrality Developers <[email protected]>"]
edition = "2018"
description = "The official rust doughnut codec"
license = "UNLICENSED"
repository = "https://github.com/cennznet/doughnut-rs"
[dependencies]
codec = { package = "parity-scale-codec", version = "^1.3.0", default-features = false, features = ["derive"] }
primitive-types = { version = "0.7.2", default-features = false }
schnorrkel = { version = "0.9.1", features = ["preaudit_deprecated", "u64_backend"], default-features = false, optional = true }
ed25519-dalek = { version = "1.0.0-pre.3", default-features = false, features = ["u64_backend", "alloc"], optional = true }
# including this to fix C build issues in consumer crates
# 'No available targets are compatible with this triple.'
clear_on_drop = { version = "0.2.3", features = ["no_cc"] }
[dev-dependencies]
rand = { version = "0.7.3", features = ["wasm-bindgen"] }
rand_core = { version = "0.5.1", features = ["alloc"] }
[features]
default = ["std"]
std = [
"crypto",
"ed25519-dalek/std",
"schnorrkel/std"
]
# enable cryptographic signing and verification features in 'no std'
crypto = [
"ed25519-dalek",
"schnorrkel"
]
# enable compilation for wasm-bindgen
wasm = [
"ed25519-dalek",
"schnorrkel/wasm-bindgen"
]