-
Notifications
You must be signed in to change notification settings - Fork 9
/
Cargo.toml
59 lines (51 loc) · 2.16 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
[package]
name = "dashu"
version = "0.4.2"
edition = "2021"
authors = ["Jacob Zhong <[email protected]>"]
description = "A library set of big numbers"
keywords = ["bignum", "numerics", "mathematics", "math"]
categories = ["mathematics", "no-std", "parsing", "value-formatting"]
repository = "https://github.com/cmpute/dashu"
homepage = "https://github.com/cmpute/dashu"
documentation = "https://docs.rs/dashu"
readme = "README.md"
license = "MIT OR Apache-2.0"
include = ["/src"]
rust-version = "1.61"
[package.metadata.docs.rs]
all-features = true
[workspace]
members = [
"base",
"benchmark",
"integer",
"float",
"macros",
"python",
"rational",
]
default-members = ["base", "integer", "float", "rational", "macros"]
[features]
default = ["std", "num-order"]
std = ["dashu-base/std", "dashu-int/std", "dashu-float/std", "dashu-ratio/std"]
# stable features
serde = ["dashu-int/serde", "dashu-float/serde", "dashu-ratio/serde"]
num-order = ["dashu-int/num-order", "dashu-float/num-order", "dashu-ratio/num-order"]
zeroize = ["dashu-int/zeroize", "dashu-float/zeroize", "dashu-ratio/zeroize"]
# unstable features
rand = ["dashu-int/rand", "dashu-float/rand", "dashu-ratio/rand"]
rand_v08 = ["dashu-int/rand_v08", "dashu-float/rand_v08", "dashu-ratio/rand_v08"]
num-traits = ["dashu-int/num-traits", "dashu-float/num-traits", "dashu-ratio/num-traits"]
num-traits_v02 = ["dashu-int/num-traits_v02", "dashu-float/num-traits_v02", "dashu-ratio/num-traits_v02"]
# this feature enables all related features related to decimal crates.
decimal-extras = ["dashu-float/postgres-types", "dashu-float/diesel"]
[dependencies]
rustversion = "1.0"
# all crates under dashu will have the same major version,
# but the minor and patch versions can be different.
dashu-base = { version = "0.4.0", default-features = false, path = "./base" }
dashu-int = { version = "0.4.1", default-features = false, path = "./integer" }
dashu-float = { version = "0.4.2", default-features = false, path = "./float" }
dashu-ratio = { version = "0.4.1", default-features = false, path = "./rational", features = ['dashu-float'] }
dashu-macros = { version = "0.4.1", default-features = false, path = "./macros" }