diff --git a/Cargo.toml b/Cargo.toml index 755917c..128c00a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ members = [ ] [workspace.package] -version = "0.3.8" +version = "0.3.10" edition = "2021" repository = "https://git.bfpower.io/BFPOWER/physical" readme = "README.md" diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 6a73224..7e73c94 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,7 +1,7 @@ # Before upgrading check that everything is available on all tier1 targets here: # https://rust-lang.github.io/rustup-components-history [toolchain] -channel = "1.81" +channel = "1.82" components = [ "rust-src", "rustfmt", "llvm-tools" ] targets = [ "thumbv7em-none-eabi", diff --git a/src/quantity/irradiance.rs b/src/quantity/irradiance.rs index f656d31..e40c729 100644 --- a/src/quantity/irradiance.rs +++ b/src/quantity/irradiance.rs @@ -1,5 +1,5 @@ use crate::quantity::{Quantity, Value}; use generate_quantity::quantity_type; -//----- Watter per Square Meter ---------------------------------- +//----- Watts per Square Meter ---------------------------------- quantity_type! {WattsPerSquareMeter, "W/m²"} diff --git a/src/quantity/mod.rs b/src/quantity/mod.rs index f42db51..b8255ff 100644 --- a/src/quantity/mod.rs +++ b/src/quantity/mod.rs @@ -3,6 +3,7 @@ mod resistance; mod temperature; mod voltage; mod volume_rate; +mod pressure; #[cfg(feature = "defmt")] pub use defmt_impl::*; @@ -12,6 +13,7 @@ pub use resistance::*; pub use temperature::*; pub use voltage::*; pub use volume_rate::*; +pub use pressure::*; use core::fmt::Display; use core::marker::PhantomData; diff --git a/src/quantity/pressure.rs b/src/quantity/pressure.rs new file mode 100644 index 0000000..abf1047 --- /dev/null +++ b/src/quantity/pressure.rs @@ -0,0 +1,5 @@ +use crate::quantity::{Quantity, Value}; +use generate_quantity::quantity_type; + +//----- Kilopascal ---------------------------------- +quantity_type! {KiloPascal, "kPa"}