# 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"
name = "qtty"
version = "0.6.1"
authors = ["VPRamon <vallespuigramon@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Strongly typed physical and astronomical quantities."
documentation = "https://docs.rs/qtty"
readme = "README.md"
keywords = [
    "astronomy",
    "quantities",
    "science",
]
categories = [
    "science",
    "aerospace",
]
license = "AGPL-3.0"
repository = "https://github.com/Siderust/qtty"

[features]
all-units = [
    "astro",
    "navigation",
    "fundamental-physics",
    "customary",
    "land-area",
    "julian-time",
]
alloc = []
astro = ["qtty-core/astro"]
cross-unit-ops = ["qtty-core/cross-unit-ops"]
customary = ["qtty-core/customary"]
default = [
    "std",
    "cross-unit-ops",
]
diesel = ["qtty-core/diesel"]
fundamental-physics = ["qtty-core/fundamental-physics"]
julian-time = ["qtty-core/julian-time"]
land-area = ["qtty-core/land-area"]
navigation = ["qtty-core/navigation"]
pyo3 = [
    "qtty-core/pyo3",
    "dep:pyo3",
]
scalar-rational = ["qtty-core/scalar-rational"]
serde = ["qtty-core/serde"]
std = [
    "alloc",
    "qtty-core/std",
]
tiberius = ["qtty-core/tiberius"]

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

[[example]]
name = "all_units"
path = "examples/all_units.rs"
required-features = [
    "std",
    "all-units",
]

[[example]]
name = "angles"
path = "examples/angles.rs"
required-features = [
    "std",
    "astro",
]

[[example]]
name = "astronomy"
path = "examples/astronomy.rs"
required-features = [
    "std",
    "astro",
]

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

[[example]]
name = "python_integration"
path = "examples/python_integration.rs"
required-features = ["pyo3"]

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

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

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

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

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

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

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

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

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

[dependencies.pyo3]
version = "0.28.2"
features = ["auto-initialize"]
optional = true

[dependencies.qtty-core]
version = "0.6.1"
default-features = false

[dependencies.qtty-derive]
version = "0.6.1"

[dev-dependencies.approx]
version = "0.5"

[dev-dependencies.proptest]
version = "1.4"

[dev-dependencies.serde]
version = "1.0"
features = ["derive"]

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