Cargo.toml (1617B)
1 [package] 2 authors = ["Zack Newman <zack@philomathiclife.com>"] 3 categories = ["algorithms", "mathematics", "science", "command-line-utilities"] 4 description = "CLI calculator for rational numbers." 5 documentation = "https://crates.io/crates/calc_rational" 6 edition = "2024" 7 keywords = ["calculator", "mathematics", "numerics"] 8 license = "MIT OR Apache-2.0" 9 name = "calc_rational" 10 readme = "README.md" 11 repository = "https://git.philomathiclife.com/repos/calc_rational/" 12 rust-version = "1.86.0" 13 version = "2.2.0" 14 15 [lib] 16 name = "calc_lib" 17 path = "src/lib.rs" 18 19 [[bin]] 20 name = "calc" 21 path = "src/main.rs" 22 23 [package.metadata.docs.rs] 24 all-features = true 25 rustdoc-args = ["--cfg", "docsrs"] 26 27 [dependencies] 28 num-bigint = { version = "0.4.6", default-features = false } 29 num-integer = { version = "0.1.46", default-features = false } 30 num-rational = { version = "0.4.2", default-features = false, features = ["num-bigint"] } 31 num-traits = { version = "0.2.19", default-features = false } 32 rand = { version = "0.9.0", default-features = false, features = ["thread_rng"], optional = true } 33 34 [target.'cfg(target_os = "openbsd")'.dependencies] 35 priv_sep = { version = "2.2.0", default-features = false, features = ["openbsd"], optional = true } 36 37 38 ### FEATURES ################################################################# 39 40 [features] 41 default = ["priv_sep"] 42 43 # Provide pledge and unveil for OpenBSD. 44 priv_sep = ["dep:priv_sep", "std"] 45 46 # Provide random functions. 47 rand = ["dep:rand", "std"] 48 49 # Provide std support. This must be enabled when compiling the binary crate. 50 std = [] 51 52 [profile.release] 53 lto = true 54 panic = 'abort' 55 strip = true