-
Notifications
You must be signed in to change notification settings - Fork 18
/
Cargo.toml
60 lines (52 loc) · 1.71 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
# Copyright © 2018–2019 Trevor Spiteri
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.
[package]
name = "substrate-fixed"
version = "0.5.9"
authors = [
"Trevor Spiteri <[email protected]>",
"Encointer Association <[email protected]>",
]
description = "Fixed-point numbers"
documentation = "https://docs.rs/fixed"
repository = "https://github.com/encointer/substrate-fixed"
readme = "README.md"
keywords = ["mathematics", "numerics"]
categories = ["algorithms", "data-structures", "no-std", "science"]
license = "MIT/Apache-2.0"
edition = "2018"
autobenches = false
[features]
f16 = ["half"]
fail-on-warnings = []
std = ["codec/std", "serde/std", "scale-info/std"]
[dependencies]
typenum = { package = "substrate-typenum", version = "1.16.0", features = [
"derive_scale",
] }
az = { version = "0.3", optional = true }
half = { version = "1.4", optional = true }
serde = { version = "1.0.60", default-features = false, optional = true }
scale-info = { version = "2.5.0", default-features = false, features = [
"derive",
] }
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = [
"derive",
"max-encoded-len",
] }
[dev-dependencies]
rand = { version = "0.7", default-features = false }
rand_xoshiro = "0.4"
criterion = "0.3"
num-traits = { version = "0.2", default-features = false }
approx = "0.3.0"
[package.metadata.docs.rs]
features = ["az", "f16", "serde", "std"]
[[bench]]
name = "bench_main"
harness = false
#[patch."https://github.com/encointer/typenum"]
#typenum = { path = "../typenum"}