|
1 | | -[workspace.package] |
2 | | -edition = "2018" |
3 | | -rust-version = "1.70" |
4 | | - |
5 | 1 | [package] |
6 | 2 | name = "num-prime" |
7 | 3 | version = "0.5.0" |
8 | 4 | edition.workspace = true |
9 | 5 | 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" |
15 | 6 | description = """ |
16 | 7 | Generic and optimized primality test, factorization and various number theoretic functions with arbitrary precision based on `num`. |
17 | 8 | """ |
| 9 | +documentation = "https://docs.rs/num-prime" |
18 | 10 | 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"] |
19 | 15 |
|
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" |
21 | 27 |
|
22 | 28 | [dependencies] |
| 29 | +bitvec = "1.0.0" |
| 30 | +either = "1.6.1" |
| 31 | +lru = "0.16.3" |
23 | 32 | num-integer = "0.1.44" |
24 | | -num-traits = "0.2.14" |
25 | 33 | num-modular = "0.6.1" |
26 | | -bitvec = "1.0.0" |
| 34 | +num-traits = "0.2.14" |
27 | 35 | rand = "0.8.6" |
28 | | -lru = "0.16.3" |
29 | | -either = "1.6.1" |
30 | 36 |
|
31 | 37 | [dependencies.num-bigint] |
32 | | -optional = true |
33 | 38 | version = "0.4.6" |
34 | 39 | features = ["rand"] |
| 40 | +optional = true |
35 | 41 |
|
36 | 42 | [features] |
37 | | -default = ['big-table', 'big-int'] |
38 | | -big-table = [] |
| 43 | +default = ["big-int", "big-table"] |
39 | 44 | # 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" |
45 | 50 | ] |
46 | | - |
47 | | -[package.metadata.docs.rs] |
48 | | -all-features = true |
| 51 | +big-table = [] |
0 commit comments