-
Notifications
You must be signed in to change notification settings - Fork 3
/
Cargo.toml
62 lines (55 loc) · 1.5 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
51
52
53
54
55
56
57
58
59
60
61
62
[package]
name = "sloth256-189"
version = "0.4.2"
description = "Encoder/decoder for the Subspace Network Blockchain based on the SLOTH permutation"
authors = [
# CPU implementation in C and x86-64 Assembly
"Andy Polyakov <[email protected]>",
# CUDA implementation in PTX
"Özgün Özerk <[email protected]>",
"Nazar Mokrynskyi <[email protected]>",
]
edition = "2021"
license = "MIT/Apache-2.0"
keywords = ["sloth", "subspace"]
documentation = "https://docs.rs/sloth256-189"
repository = "https://github.com/subspace/sloth256-189"
readme = "README.md"
include = [
"/benches",
"/src",
"/build.rs",
"/Cargo.toml",
"/LICENSE-APACHE",
"/LICENSE-MIT",
"/README.md",
]
[package.metadata.docs.rs]
features = ["opencl"]
default-target = "x86_64-unknown-linux-gnu"
targets = []
[dependencies]
thiserror = { version = "1.0", optional = true }
openmp-sys = { version = "1.2.1", optional = true }
[dev-dependencies]
criterion = { version = "0.3.5", features = ["html_reports"] }
getrandom = { version = "0.2.6", features = ["js"] }
rand = { version = "0.8.4", default-features = false }
rayon = "1.5.1"
[build-dependencies]
cc = "1.0.70"
glob = "0.3.0"
which = "^4.2.2"
[features]
default = ["std"]
std = ["rand/std", "rand/std_rng", "thiserror"]
# Force-disable ASM x86-64 implemenation for testing/benchmarking purposes
no-asm = []
opencl = ["openmp-sys", "std"]
[[bench]]
name = "cpu"
harness = false
[[bench]]
name = "opencl"
harness = false
required-features = ["opencl"]