#finite-fields #newtype #macro #galois

macro no-std g2gen

A macro to create types that implement fast finite field arithmetic

10 releases (6 stable)

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

#7 in #galois

Download history 53050/week @ 2025-11-14 43844/week @ 2025-11-21 42047/week @ 2025-11-28 44486/week @ 2025-12-05 40610/week @ 2025-12-12 25384/week @ 2025-12-19 16576/week @ 2025-12-26 77983/week @ 2026-01-02 81905/week @ 2026-01-09 66120/week @ 2026-01-16 71845/week @ 2026-01-23 83902/week @ 2026-01-30 92096/week @ 2026-02-06 67752/week @ 2026-02-13 82001/week @ 2026-02-20 66191/week @ 2026-02-27

323,306 downloads per month
Used in 61 crates (via g2p)

MIT/Apache

40KB
727 lines

Procedural macro to generate finite field types

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


g2gen

See g2p

License

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

Dependencies

~125–510KB
~12K SLoC