#numbers

hexga_typedef

Provide a common typedef for float, int and uint. The precision can be changed with feature flags and can be easily shared across multiple crates.

1 unstable release

Uses new Rust 2024

new 0.0.10-beta.1 Mar 31, 2025
0.0.9 Mar 31, 2025

#1072 in Math

Download history 635/week @ 2025-03-24

635 downloads per month
Used in 2 crates (via hexga_math)

MIT/Apache

6KB
65 lines

HexGa Typedef

Provide a common typedef for float, int and uint. The precision can be changed with feature flags and can be easily shared across multiple crates.

See the toml to change the precision :

[features]
default = ["int_are_32_bits", "float_are_32_bits"]

int_are_8_bits    = []
int_are_16_bits   = []
int_are_32_bits   = []
int_are_64_bits   = []
int_are_size_bits = []

float_are_32_bits   = []
float_are_64_bits   = []
float_are_size_bits = []

Main Hexga crate

Check hexga : https://crates.io/crates/hexga if you are interested in a quick start, it regroup multiple hexga crates.

No runtime deps

Features