# 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-core"
version = "0.8.3"
authors = ["VPRamon <vallespuigramon@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core types for zero-cost strongly-typed physical quantities."
documentation = "https://docs.rs/qtty-core"
readme = "README.md"
keywords = [
    "astronomy",
    "quantities",
    "science",
]
categories = [
    "science",
    "aerospace",
]
license = "BSD-3-Clause"
repository = "https://github.com/Siderust/qtty"

[features]
all-units = [
    "astro",
    "navigation",
    "fundamental-physics",
    "customary",
    "land-area",
    "radiometry",
    "photometry",
    "frequency",
    "chemistry",
    "electrical",
    "density",
]
astro = ["julian-time"]
chemistry = []
cross-unit-ops = []
customary = []
default = [
    "std",
    "cross-unit-ops",
]
density = []
diesel = ["dep:diesel"]
electrical = []
frequency = []
fundamental-physics = []
julian-time = []
land-area = []
navigation = []
photometry = []
pyo3 = ["dep:pyo3"]
radiometry = ["fundamental-physics"]
scalar-rational = ["num-rational"]
serde = ["dep:serde"]
std = []
tiberius = ["dep:tiberius"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.diesel]
version = "2.1"
optional = true
default-features = false

[dependencies.libm]
version = "0.2"

[dependencies.num-rational]
version = "0.4"
optional = true
default-features = false

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

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

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

[dependencies.tiberius]
version = "0.12"
optional = true
default-features = false

[dependencies.typenum]
version = "1.17"

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

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

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

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