| 1 |
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO |
| 2 |
# |
| 3 |
# When uploading crates to the registry Cargo will automatically |
| 4 |
# "normalize" Cargo.toml files for maximal compatibility |
| 5 |
# with all versions of Cargo and also rewrite `path` dependencies |
| 6 |
# to registry (e.g., crates.io) dependencies. |
| 7 |
# |
| 8 |
# If you are reading this file be aware that the original Cargo.toml |
| 9 |
# will likely look very different (and much more reasonable). |
| 10 |
# See Cargo.toml.orig for the original contents. |
| 11 |
|
| 12 |
[package] |
| 13 |
edition = "2018" |
| 14 |
rust-version = "1.70" |
| 15 |
name = "num-prime" |
| 16 |
version = "0.5.0" |
| 17 |
build = false |
| 18 |
autolib = false |
| 19 |
autobins = false |
| 20 |
autoexamples = false |
| 21 |
autotests = false |
| 22 |
autobenches = false |
| 23 |
description = """ |
| 24 |
Generic and optimized primality test, factorization and various number theoretic functions with arbitrary precision based on `num`. |
| 25 |
""" |
| 26 |
documentation = "https://docs.rs/num-prime" |
| 27 |
readme = "README.md" |
| 28 |
keywords = [ |
| 29 |
"mathematics", |
| 30 |
"primes", |
| 31 |
"number-theory", |
| 32 |
"bigint", |
| 33 |
"num", |
| 34 |
] |
| 35 |
categories = [ |
| 36 |
"cryptography", |
| 37 |
"science", |
| 38 |
"algorithms", |
| 39 |
] |
| 40 |
license = "Apache-2.0" |
| 41 |
repository = "https://github.com/uutils/num-prime" |
| 42 |
|
| 43 |
[package.metadata.docs.rs] |
| 44 |
all-features = true |
| 45 |
|
| 46 |
[features] |
| 47 |
big-int = [ |
| 48 |
"num-bigint", |
| 49 |
"num-modular/num-bigint", |
| 50 |
"num-modular/num-traits", |
| 51 |
"num-modular/num-integer", |
| 52 |
] |
| 53 |
big-table = [] |
| 54 |
default = [ |
| 55 |
"big-table", |
| 56 |
"big-int", |
| 57 |
] |
| 58 |
|
| 59 |
[lib] |
| 60 |
name = "num_prime" |
| 61 |
path = "src/lib.rs" |
| 62 |
|
| 63 |
[[example]] |
| 64 |
name = "divisor_sigma" |
| 65 |
path = "examples/divisor_sigma.rs" |
| 66 |
|
| 67 |
[[example]] |
| 68 |
name = "find_lucky_primes" |
| 69 |
path = "examples/find_lucky_primes.rs" |
| 70 |
|
| 71 |
[[example]] |
| 72 |
name = "find_mersenne_primes" |
| 73 |
path = "examples/find_mersenne_primes.rs" |
| 74 |
|
| 75 |
[[example]] |
| 76 |
name = "prime_omega" |
| 77 |
path = "examples/prime_omega.rs" |
| 78 |
|
| 79 |
[[example]] |
| 80 |
name = "profile_factorization" |
| 81 |
path = "examples/profile_factorization.rs" |
| 82 |
|
| 83 |
[[example]] |
| 84 |
name = "test_comparison" |
| 85 |
path = "examples/test_comparison.rs" |
| 86 |
|
| 87 |
[dependencies.bitvec] |
| 88 |
version = "1.0.0" |
| 89 |
|
| 90 |
[dependencies.either] |
| 91 |
version = "1.6.1" |
| 92 |
|
| 93 |
[dependencies.lru] |
| 94 |
version = "0.16.3" |
| 95 |
|
| 96 |
[dependencies.num-bigint] |
| 97 |
version = "0.4.6" |
| 98 |
features = ["rand"] |
| 99 |
optional = true |
| 100 |
|
| 101 |
[dependencies.num-integer] |
| 102 |
version = "0.1.44" |
| 103 |
|
| 104 |
[dependencies.num-modular] |
| 105 |
version = "0.6.1" |
| 106 |
|
| 107 |
[dependencies.num-traits] |
| 108 |
version = "0.2.14" |
| 109 |
|
| 110 |
[dependencies.rand] |
| 111 |
version = "0.8.4" |