Migrated from uom to custom quantity implementation.
This commit is contained in:
37
Cargo.toml
37
Cargo.toml
@ -9,7 +9,7 @@ members = [
|
||||
]
|
||||
|
||||
[workspace.package]
|
||||
version = "0.3.4"
|
||||
version = "0.3.5"
|
||||
edition = "2021"
|
||||
repository = "https://git.bfpower.io/BFPOWER/physical"
|
||||
readme = "README.md"
|
||||
@ -22,11 +22,8 @@ version = "0.2.*"
|
||||
default-features = false
|
||||
[workspace.dependencies.libm]
|
||||
version = "0.2.*"
|
||||
# Units of measurement
|
||||
[workspace.dependencies.uom]
|
||||
version = "0.36.*"
|
||||
default-features = false
|
||||
features = ["f32", "si"]
|
||||
[workspace.dependencies.float-cmp]
|
||||
version = "0.9.*"
|
||||
# Logging
|
||||
[workspace.dependencies.tracing]
|
||||
version = "0.1.*"
|
||||
@ -61,7 +58,6 @@ git = "https://git.bfpower.io/BFPOWER/bfpower-drivers.git"
|
||||
features = ["defmt"]
|
||||
[workspace.dependencies.ads1256]
|
||||
git = "https://git.bfpower.io/BFPOWER/bfpower-drivers.git"
|
||||
features = ["uom"]
|
||||
# Embassy
|
||||
[workspace.dependencies.embassy-futures]
|
||||
version = "0.1.*"
|
||||
@ -85,7 +81,9 @@ features = ["defmt", "unstable-pac"]
|
||||
[workspace.dependencies.embassy-nrf]
|
||||
version = "0.1.*"
|
||||
features = ["defmt"]
|
||||
# Macros
|
||||
# Meta
|
||||
[workspace.dependencies.derive_more]
|
||||
version = "0.99.*"
|
||||
[workspace.dependencies.syn]
|
||||
version = "2.0.*"
|
||||
features = ["extra-traits", "parsing"]
|
||||
@ -107,6 +105,8 @@ readme.workspace = true
|
||||
license.workspace = true
|
||||
|
||||
[features]
|
||||
std = ["num-traits/std"]
|
||||
libm = ["dep:libm", "num-traits/libm"]
|
||||
resistive-divider = []
|
||||
thermocouple-k = ["libm"]
|
||||
thermistor = ["libm"]
|
||||
@ -114,11 +114,22 @@ lm35 = []
|
||||
pid = []
|
||||
stm32 = []
|
||||
|
||||
[dependencies]
|
||||
uom = { workspace = true }
|
||||
num-traits = { workspace = true }
|
||||
libm = { workspace = true, optional = true }
|
||||
serde = { workspace = true, optional = true }
|
||||
[dependencies.num-traits]
|
||||
workspace = true
|
||||
[dependencies.derive_more]
|
||||
workspace = true
|
||||
[dependencies.defmt]
|
||||
workspace = true
|
||||
optional = true
|
||||
[dependencies.libm]
|
||||
workspace = true
|
||||
optional = true
|
||||
[dependencies.serde]
|
||||
workspace = true
|
||||
optional = true
|
||||
|
||||
[dev-dependencies.float-cmp]
|
||||
workspace = true
|
||||
|
||||
#---------------------------------------------------------------------------------------------------------------------
|
||||
#----- Profiles ------------------------
|
||||
|
Reference in New Issue
Block a user