-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
64 lines (53 loc) · 1.26 KB
/
Copy pathCargo.toml
File metadata and controls
64 lines (53 loc) · 1.26 KB
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
63
[package]
name = "crypto-ratio"
version = "0.2.2"
edition = "2021"
authors = ["Torben Poguntke <sbcdn@pm.me>"]
license = "MIT OR Apache-2.0"
description = "Rational number arithmetic using crypto-bigint"
documentation = "https://docs.rs/crypto-ratio"
repository = "https://github.com/sbcdn/crypto-ratio"
homepage = "https://github.com/sbcdn/crypto-ratio"
readme = "README.md"
keywords = ["rational","bigint", "crypto", "risc0", "zkvm"]
categories = ["algorithms", "mathematics", "cryptography", "no-std"]
rust-version = "1.65"
exclude = [
".github/",
"target/",
"*.swp",
"*.swo",
"*~",
]
[lib]
name = "crypto_ratio"
path = "src/lib.rs"
[dependencies]
crypto-bigint = { version = "0.5", default-features = false }
[dev-dependencies]
# For testing
num-bigint = "0.4"
num-rational = "0.4"
num-integer = "0.1"
# For benchmarking
criterion = { version = "0.5", features = ["html_reports"] }
[features]
default = ["std"]
std = ["crypto-bigint/alloc"]
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
[profile.bench]
opt-level = 3
lto = true
codegen-units = 1
[[bench]]
name = "ratio_benchmark_u512"
harness = false
[[bench]]
name = "ratio_benchmarks_full"
harness = false
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]