blob: 3f23cd13c43a4bf9f6b2e3f6ef9cf3a597c9e0fb [file] [log] [blame] [edit]
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.
[package]
edition = "2021"
rust-version = "1.60"
name = "num-rational"
version = "0.4.2"
authors = ["The Rust Project Developers"]
exclude = [
"/ci/*",
"/.github/*",
]
description = "Rational numbers implementation for Rust"
homepage = "https://github.com/rust-num/num-rational"
documentation = "https://docs.rs/num-rational"
readme = "README.md"
keywords = [
"mathematics",
"numerics",
"fractions",
]
categories = [
"algorithms",
"data-structures",
"science",
"no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/rust-num/num-rational"
[package.metadata.docs.rs]
features = [
"std",
"num-bigint-std",
"serde",
]
[dependencies.num-bigint]
version = "0.4.0"
optional = true
default-features = false
[dependencies.num-integer]
version = "0.1.42"
features = ["i128"]
default-features = false
[dependencies.num-traits]
version = "0.2.18"
features = ["i128"]
default-features = false
[dependencies.serde]
version = "1.0.0"
optional = true
default-features = false
[features]
default = [
"num-bigint",
"std",
]
num-bigint = ["dep:num-bigint"]
num-bigint-std = ["num-bigint/std"]
serde = ["dep:serde"]
std = [
"num-bigint?/std",
"num-integer/std",
"num-traits/std",
]