calc_rational

CLI calculator for rational numbers.
git clone https://git.philomathiclife.com/repos/calc_rational
Log | Files | Refs | README

Cargo.toml (1730B)


      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 = "2021"
      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.81.0"
     13 version = "2.0.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 [badges]
     24 maintenance = { status = "actively-developed" }
     25 
     26 [package.metadata.docs.rs]
     27 all-features = true
     28 
     29 [dependencies]
     30 num-bigint = { version = "0.4.6", default-features = false }
     31 num-integer = { version = "0.1.46", default-features = false }
     32 num-rational = { version = "0.4.2", default-features = false, features = ["num-bigint"] }
     33 num-traits = { version = "0.2.19", default-features = false }
     34 rand = { version = "0.8.5", default-features = false, features = ["std", "std_rng"], optional = true }
     35 
     36 [target.'cfg(target_os = "openbsd")'.dependencies]
     37 priv_sep = { version = "2.1.0", default-features = false, features = ["openbsd"], optional = true }
     38 
     39 [build-dependencies]
     40 rustc_version = { version = "0.4.1", default-features = false }
     41 
     42 
     43 ### FEATURES #################################################################
     44 
     45 [features]
     46 default = ["priv_sep", "std"]
     47 
     48 # Provide pledge and unveil for OpenBSD.
     49 priv_sep = ["dep:priv_sep"]
     50 
     51 # Provide random functions.
     52 rand = ["dep:rand", "std"]
     53 
     54 # Provide std support. This must be enabled when compiling the binary crate.
     55 std = []
     56 
     57 [profile.release]
     58 lto = true
     59 panic = 'abort'
     60 strip = true