Skip to content

Commit f5ee925

Browse files
committed
chore: reformat TOML files
1 parent a71ea11 commit f5ee925

2 files changed

Lines changed: 31 additions & 28 deletions

File tree

Cargo.toml

Lines changed: 28 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,51 @@
1-
[workspace.package]
2-
edition = "2018"
3-
rust-version = "1.70"
4-
51
[package]
62
name = "num-prime"
73
version = "0.5.0"
84
edition.workspace = true
95
rust-version.workspace = true
10-
repository = "https://github.com/uutils/num-prime"
11-
keywords = ["mathematics", "primes", "number-theory", "bigint", "num"]
12-
categories = ["cryptography", "science", "algorithms"]
13-
documentation = "https://docs.rs/num-prime"
14-
license = "Apache-2.0"
156
description = """
167
Generic and optimized primality test, factorization and various number theoretic functions with arbitrary precision based on `num`.
178
"""
9+
documentation = "https://docs.rs/num-prime"
1810
readme = "README.md"
11+
repository = "https://github.com/uutils/num-prime"
12+
license = "Apache-2.0"
13+
keywords = ["bigint", "mathematics", "num", "number-theory", "primes"]
14+
categories = ["algorithms", "cryptography", "science"]
1915

20-
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
16+
[package.metadata.docs.rs]
17+
all-features = true
18+
19+
[workspace]
20+
members = [
21+
"bench",
22+
]
23+
24+
[workspace.package]
25+
edition = "2018"
26+
rust-version = "1.70"
2127

2228
[dependencies]
29+
bitvec = "1.0.0"
30+
either = "1.6.1"
31+
lru = "0.16.3"
2332
num-integer = "0.1.44"
24-
num-traits = "0.2.14"
2533
num-modular = "0.6.1"
26-
bitvec = "1.0.0"
34+
num-traits = "0.2.14"
2735
rand = "0.8.6"
28-
lru = "0.16.3"
29-
either = "1.6.1"
3036

3137
[dependencies.num-bigint]
32-
optional = true
3338
version = "0.4.6"
3439
features = ["rand"]
40+
optional = true
3541

3642
[features]
37-
default = ['big-table', 'big-int']
38-
big-table = []
43+
default = ["big-int", "big-table"]
3944
# TODO: use the new cargo feature to override the num-bigint option
40-
big-int = ['num-bigint', 'num-modular/num-bigint', 'num-modular/num-traits', 'num-modular/num-integer']
41-
42-
[workspace]
43-
members = [
44-
"bench",
45+
big-int = [
46+
"num-bigint",
47+
"num-modular/num-bigint",
48+
"num-modular/num-integer",
49+
"num-modular/num-traits"
4550
]
46-
47-
[package.metadata.docs.rs]
48-
all-features = true
51+
big-table = []

bench/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
[package]
22
name = "num-prime-bench"
33
version = "0.0.0"
4-
publish = false
54
edition.workspace = true
65
rust-version.workspace = true
6+
publish = false
77

88
[[bench]]
9-
name = "bench"
109
harness = false
10+
name = "bench"
1111

1212
[dependencies]
1313
num-primes = { version = "0.3.0", optional = true }
1414

1515
[dev-dependencies]
16-
criterion = { version = "4.4.1", package = "codspeed-criterion-compat" }
16+
criterion = { package = "codspeed-criterion-compat", version = "4.4.1" }
1717
glass_pumpkin = "1.2.0"
1818
num-bigint = { version = "0.4", features = ["rand"] }
1919
num-prime = { path = "..", features = ["big-int"] }

0 commit comments

Comments
 (0)