[package]
name = "physical-quantity"
version = "0.0.1"
edition = "2021"
license = "MIT OR Apache-2.0"
description = "dimension and unit system for general physical physical quantities."
homepage = "https://gitlab.com/fton/physical-quantity"
repository = "https://gitlab.com/fton/physical-quantity"
keywords = ["util-lib", "hobby", "engineering"]
categories = ["no-std", "science", "rust-patterns"]
exclude = [
    "doc/*",
    ".*"
]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
typenum = { version = "1", default-features = false, features = ["no_std"] }
combine = { version = "4", default-features = false, optional = true }
num = { version = "0.4", default-features = false, features = ["alloc"], optional = true }

[dependencies.transition-table]
version = "0.0"
path = "../transition-table"
optional = true

[dependencies.const-frac]
version = "0.0"
path = "../const-frac"

[dependencies.const-array-attrs]
version = "0.0"
path = "../const-array-attrs"
optional = true

[dependencies.keyword-parser]
version = "0.0"
path = "../keyword-parser"
optional = true

[dependencies.real-proc]
version = "0.0"
path = "../real-proc"
optional = true

[dev-dependencies]
num = "0.4"

[features]
default = ["full"]
full = ["num", "default-units"]
default-units = ["const-array-attrs", "parser", "real-proc"]
parser = ["combine", "keyword-parser", "transition-table"]
ratio = ["num", "const-frac/num"]
std = []