#copper #real-time

no-std cu29-units

Copper-native units with uom-shaped API and native bincode/reflect support

3 releases (breaking)

Uses new Rust 2024

0.15.0 Mar 31, 2026
0.14.0 Mar 19, 2026
0.13.0 Feb 13, 2026

#56 in #copper

Download history 57/week @ 2026-02-13 198/week @ 2026-02-20 154/week @ 2026-02-27 146/week @ 2026-03-06 140/week @ 2026-03-13 150/week @ 2026-03-20 185/week @ 2026-03-27 132/week @ 2026-04-03 152/week @ 2026-04-10

646 downloads per month
Used in 46 crates (via cu29)

Apache-2.0

28KB
490 lines

cu29-units

Copper-native SI quantity wrappers with a uom-shaped API, plus serde/bincode support and optional reflection support.

Feature Flags

  • default = ["std"]
  • std: enables uom/std
  • reflect: enables bevy_reflect derive/traits for wrapped unit types
  • textlogs: compatibility no-op for downstream feature forwarding

Namespace via cu29

When using the cu29 facade crate with its units feature (enabled by default), these types are available at:

use cu29::units::si::f32::Length;
use cu29::units::si::length::meter;

You can also depend on cu29-units directly:

use cu29_units::si::f32::Length;
use cu29_units::si::length::meter;

Dependencies

~2.5–4.5MB
~94K SLoC