unitforge 0.5.5__tar.gz → 0.5.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {unitforge-0.5.5 → unitforge-0.5.6}/Cargo.lock +2 -2
- {unitforge-0.5.5 → unitforge-0.5.6}/Cargo.toml +2 -2
- {unitforge-0.5.5 → unitforge-0.5.6}/PKG-INFO +1 -1
- {unitforge-0.5.5 → unitforge-0.5.6}/src/impl_macros.rs +12 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/unitforge_macros/Cargo.toml +1 -1
- {unitforge-0.5.5 → unitforge-0.5.6}/.gitignore +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/.gitlab-ci.yml +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/Readme.md +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/Readme_py.md +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/install_hooks.sh +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/pyproject.toml +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/python/unitforge/__init__.py +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/python/unitforge/__init__.pyi +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/python/unitforge/py.typed +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/scripts/generate_python_stubs.py +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/errors.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/internal.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/lib.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/prelude.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/acceleration.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/angle.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/angular_acceleration.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/angular_velocity.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/area.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/area_of_moment.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/charge.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/compliance.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/density.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/density_rate.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/density_temperature.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/density_temperature_rate.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/distance.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/force.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/force_area.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/force_distance.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/force_div_distance_power_four.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/force_per_volume.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/force_stress.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/force_volume.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/frequency.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/inverse_angle.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/inverse_area.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/inverse_distance.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/inverse_stress.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/mass.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/mass_per_distance.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/molar_mass.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/pressure_rate.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/rotational_stiffness.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/specific_gas_constant.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/stiffness.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/strain.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/strain_squared.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/stress.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/stress_cubed.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/stress_per_temperature.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/stress_rate.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/stress_rate_per_temperature.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/stress_squared.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/temperature.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/time.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/universal_gas_constant.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/velocity.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/velocity_squared.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/voltage.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities/volume.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/quantities.template.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/relations.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/small_linalg/bindings/matrix3_py.template.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/small_linalg/bindings/vector3_py.template.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/small_linalg/matrix2.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/small_linalg/matrix2x3.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/small_linalg/matrix3.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/small_linalg/matrix3x2.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/small_linalg/vector2.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/src/small_linalg/vector3.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/test.sh +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/tests/common/mod.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/tests/matrix2.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/tests/matrix2x3.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/tests/matrix3.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/tests/matrix3x2.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/tests/ndarray_dot.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/tests/quantities.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/tests/quantity_core/constants.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/tests/quantity_core/construction.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/tests/quantity_core/enum_iter.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/tests/quantity_core/metadata.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/tests/quantity_core/normalization.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/tests/quantity_core/plain_storage.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/tests/quantity_core/relations.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/tests/quantity_core/runtime_quantity.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/tests/quantity_core/scalar_edges.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/tests/quantity_core.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/tests/quantity_serde.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/tests/small_linalg_edge_cases.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/tests/small_linalg_interfaces.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/tests/test_quantities.py +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/tests/test_small_linalg.py +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/tests/typecheck/mypy_smoke.py +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/tests/vector2.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/tests/vector3.rs +0 -0
- {unitforge-0.5.5 → unitforge-0.5.6}/unitforge_macros/src/lib.rs +0 -0
|
@@ -351,7 +351,7 @@ checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512"
|
|
|
351
351
|
|
|
352
352
|
[[package]]
|
|
353
353
|
name = "unitforge"
|
|
354
|
-
version = "0.5.
|
|
354
|
+
version = "0.5.6"
|
|
355
355
|
dependencies = [
|
|
356
356
|
"ndarray",
|
|
357
357
|
"num-traits",
|
|
@@ -367,7 +367,7 @@ dependencies = [
|
|
|
367
367
|
|
|
368
368
|
[[package]]
|
|
369
369
|
name = "unitforge_macros"
|
|
370
|
-
version = "0.5.
|
|
370
|
+
version = "0.5.6"
|
|
371
371
|
dependencies = [
|
|
372
372
|
"regex",
|
|
373
373
|
]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "unitforge"
|
|
3
|
-
version = "0.5.
|
|
3
|
+
version = "0.5.6"
|
|
4
4
|
edition = "2021"
|
|
5
5
|
authors = ["Dr.Q team <info@askdrq.com>", "Henrik Stromberg <henrik@askdrq.com>"]
|
|
6
6
|
description = "A library for unit and quantity consistent computations in Rust"
|
|
@@ -20,7 +20,7 @@ pyo3 = { version = "0.28.3", features = ["extension-module", "auto-initialize",
|
|
|
20
20
|
numpy = { version = "0.28.0", optional = true }
|
|
21
21
|
strum = { version = "0.28.0", optional = true }
|
|
22
22
|
strum_macros = { version = "0.28.0", optional = true }
|
|
23
|
-
unitforge_macros = { version = "0.5.
|
|
23
|
+
unitforge_macros = { version = "0.5.6", path = "unitforge_macros" }
|
|
24
24
|
|
|
25
25
|
[features]
|
|
26
26
|
default = []
|
|
@@ -44,6 +44,18 @@ macro_rules! impl_quantity {
|
|
|
44
44
|
pub(crate) kind_id: u32,
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
+
impl core::hash::Hash for $type {
|
|
48
|
+
#[cfg(not(any(feature = "storage-f64", feature = "storage-f32")))]
|
|
49
|
+
fn hash<H: core::hash::Hasher>(&self, state: &mut H) {
|
|
50
|
+
core::hash::Hash::hash(&self.multiplier.to_bits(), state);
|
|
51
|
+
core::hash::Hash::hash(&self.power, state);
|
|
52
|
+
}
|
|
53
|
+
#[cfg(any(feature = "storage-f64", feature = "storage-f32"))]
|
|
54
|
+
fn hash<H: core::hash::Hasher>(&self, state: &mut H) {
|
|
55
|
+
core::hash::Hash::hash(&self.value.to_bits(), state);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
47
59
|
impl $type {
|
|
48
60
|
#[cfg(not(any(feature = "storage-f64", feature = "storage-f32")))]
|
|
49
61
|
fn from_parts(multiplier: f64, power: i32) -> Self {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "unitforge_macros"
|
|
3
|
-
version = "0.5.
|
|
3
|
+
version = "0.5.6"
|
|
4
4
|
edition = "2021"
|
|
5
5
|
authors = ["Dr.Q team <info@askdrq.com>", "Henrik Stromberg <henrik@askdrq.com>"]
|
|
6
6
|
description = "Proc macros for generating units, quantities, and Python bindings in unitforge"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|