ferrunitas 0.4.0

A type-safe unit conversion library with compile-time dimensional analysis
Documentation
# 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 = "2024"
rust-version = "1.85.0"
name = "ferrunitas"
version = "0.4.0"
authors = ["Marek Hummel <marek.hummel3@gmail.com>"]
build = false
exclude = [
    "/.github/",
    "system_test.rs",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A type-safe unit conversion library with compile-time dimensional analysis"
documentation = "https://docs.rs/ferrunitas"
readme = "README.md"
keywords = [
    "units",
    "conversion",
    "measurement",
    "SI",
    "dimensional-analysis",
]
categories = [
    "science",
    "data-structures",
    "mathematics",
    "value-formatting",
]
license = "Apache-2.0"
repository = "https://github.com/marekhummel/ferrunitas"

[features]
approx = ["dep:approx"]
default = [
    "std",
    "f64",
]
f32 = []
f64 = []
quantity_tags = []
serde = ["dep:serde"]
std = [
    "num-traits/std",
    "serde?/std",
    "approx?/std",
]

[lib]
name = "ferrunitas"
path = "src/lib.rs"

[[example]]
name = "advanced"
path = "examples/advanced.rs"

[[example]]
name = "basics"
path = "examples/basics.rs"

[[example]]
name = "functions"
path = "examples/functions.rs"

[[example]]
name = "misc"
path = "examples/misc.rs"

[[example]]
name = "serialization"
path = "examples/serialization.rs"
required-features = ["serde"]

[[test]]
name = "comparison_traits"
path = "tests/comparison_traits.rs"

[[test]]
name = "display_impl"
path = "tests/display_impl.rs"

[[test]]
name = "std_operations"
path = "tests/std_operations.rs"

[dependencies.approx]
version = "0.5.1"
optional = true
default-features = false

[dependencies.const_format]
version = "0.2.34"

[dependencies.num-traits]
version = "0.2.19"
default-features = false

[dependencies.paste]
version = "1.0"

[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true
default-features = false

[dependencies.typenum]
version = "1.18.0"

[dev-dependencies.serde_json]
version = "1.0.143"

[lints.rust]
missing_docs = "warn"

[profile.release]
lto = "fat"