calc_rational

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

Cargo.toml (3167B)


      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.87.0"
     13 version = "2.3.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 [lints.rust]
     24 unknown_lints = { level = "deny", priority = -1 }
     25 future_incompatible = { level = "deny", priority = -1 }
     26 let_underscore = { level = "deny", priority = -1 }
     27 missing_docs = { level = "deny", priority = -1 }
     28 nonstandard_style = { level = "deny", priority = -1 }
     29 refining_impl_trait = { level = "deny", priority = -1 }
     30 rust_2018_compatibility = { level = "deny", priority = -1 }
     31 rust_2018_idioms = { level = "deny", priority = -1 }
     32 rust_2021_compatibility = { level = "deny", priority = -1 }
     33 rust_2024_compatibility = { level = "deny", priority = -1 }
     34 unsafe_code = { level = "deny", priority = -1 }
     35 unused = { level = "deny", priority = -1 }
     36 warnings = { level = "deny", priority = -1 }
     37 
     38 [lints.clippy]
     39 all = { level = "deny", priority = -1 }
     40 cargo = { level = "deny", priority = -1 }
     41 complexity = { level = "deny", priority = -1 }
     42 correctness = { level = "deny", priority = -1 }
     43 nursery = { level = "deny", priority = -1 }
     44 pedantic = { level = "deny", priority = -1 }
     45 perf = { level = "deny", priority = -1 }
     46 restriction = { level = "deny", priority = -1 }
     47 style = { level = "deny", priority = -1 }
     48 suspicious = { level = "deny", priority = -1 }
     49 # Noisy, opinionated, and likely don't prevent bugs or improve APIs.
     50 arbitrary_source_item_ordering = "allow"
     51 blanket_clippy_restriction_lints = "allow"
     52 exhaustive_enums = "allow"
     53 implicit_return = "allow"
     54 min_ident_chars = "allow"
     55 missing_trait_methods = "allow"
     56 pub_use = "allow"
     57 question_mark_used = "allow"
     58 ref_patterns = "allow"
     59 return_and_then = "allow"
     60 single_call_fn = "allow"
     61 single_char_lifetime_names = "allow"
     62 unseparated_literal_suffix = "allow"
     63 
     64 [package.metadata.docs.rs]
     65 all-features = true
     66 rustdoc-args = ["--cfg", "docsrs"]
     67 
     68 [dependencies]
     69 num-bigint = { version = "0.4.6", default-features = false }
     70 num-integer = { version = "0.1.46", default-features = false }
     71 num-rational = { version = "0.4.2", default-features = false, features = ["num-bigint"] }
     72 num-traits = { version = "0.2.19", default-features = false }
     73 priv_sep = { version = "3.0.0-alpha.1", default-features = false, optional = true }
     74 rand = { version = "0.9.1", default-features = false, features = ["thread_rng"], optional = true }
     75 
     76 
     77 ### FEATURES #################################################################
     78 
     79 [features]
     80 default = ["priv_sep"]
     81 
     82 # Provide pledge and unveil for OpenBSD.
     83 priv_sep = ["dep:priv_sep", "std"]
     84 
     85 # Provide random functions.
     86 rand = ["dep:rand", "std"]
     87 
     88 # Provide std support. This must be enabled when compiling the binary crate.
     89 std = []
     90 
     91 [profile.release]
     92 lto = true
     93 panic = 'abort'
     94 strip = true