#finite-fields #newtype #galois #macro #proc-macro

macro no-std g2gen

A macro to create types that implement fast finite field arithmetic

10 releases (6 stable)

new 1.2.2 Mar 23, 2025
1.2.1 Mar 22, 2025
1.1.0 Aug 12, 2024
1.0.1 Jan 17, 2023
0.1.0 Mar 25, 2019

#75 in #newtype

Download history 26230/week @ 2024-12-01 26950/week @ 2024-12-08 26363/week @ 2024-12-15 5635/week @ 2024-12-22 9326/week @ 2024-12-29 26746/week @ 2025-01-05 35898/week @ 2025-01-12 25966/week @ 2025-01-19 31744/week @ 2025-01-26 35910/week @ 2025-02-02 35563/week @ 2025-02-09 29536/week @ 2025-02-16 38098/week @ 2025-02-23 35799/week @ 2025-03-02 41104/week @ 2025-03-09 43033/week @ 2025-03-16

159,323 downloads per month
Used in 36 crates (via g2p)

MIT/Apache

40KB
727 lines

g2gen

See g2p

License

Licensed under the Apache License, Version 2.0 LICENSE-APACHE or the MIT license LICENSE-MIT>, at your option.


lib.rs:

Procedural macro to generate finite field types

This is just the procedural macro, for more information look at g2p.

Dependencies

~190–620KB
~15K SLoC