#unsigned-integer #numbers #hexga #precision #typedef #float #flags #across #changed

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.

16 releases

Uses new Rust 2024

0.0.10-beta.16 Jun 1, 2025
0.0.10-beta.13 May 29, 2025
0.0.10-beta.3 Apr 20, 2025
0.0.10-beta.1 Mar 31, 2025

#922 in Math

Download history 696/week @ 2025-03-26 159/week @ 2025-04-02 37/week @ 2025-04-09 147/week @ 2025-04-16 18/week @ 2025-04-23 771/week @ 2025-05-07 288/week @ 2025-05-14 130/week @ 2025-05-21 514/week @ 2025-05-28 35/week @ 2025-06-04 10/week @ 2025-06-11 9/week @ 2025-06-18 22/week @ 2025-06-25 14/week @ 2025-07-02

56 downloads per month
Used in 9 crates (via hexga_math)

MIT/Apache

8KB
116 lines

Define what will be the default int, uint and float (and Coef = float) typedef.


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.

You must enable one flag for int and for float precision. 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