#enums #fake #type #byte #reinterpreted

fake-enum

A rust crate for creating FFI safe "fake" enum types

3 releases

0.1.4 Aug 9, 2021
0.1.3 Aug 9, 2021
0.1.2 Feb 11, 2021
0.1.1 Feb 4, 2021
0.1.0 Jan 11, 2021

#2774 in Rust patterns

Download history 63/week @ 2024-07-28 44/week @ 2024-08-04 16/week @ 2024-08-11 8/week @ 2024-08-18 18/week @ 2024-08-25 18/week @ 2024-09-01 24/week @ 2024-09-08 13/week @ 2024-09-15 31/week @ 2024-09-22 39/week @ 2024-09-29 3/week @ 2024-10-06 14/week @ 2024-10-13 9/week @ 2024-10-20 13/week @ 2024-10-27 25/week @ 2024-11-03 7/week @ 2024-11-10

55 downloads per month
Used in 4 crates

MIT AND Apache-2.0

77KB
821 lines

Contains (autotools obfuscated code, 125KB) configure, (obscure autoconf code, 1KB) configure.ac

Rust Fake Enums

A small library that allows you to declare "fake" enums, which can be safely used with FFI, or reinterpreted from bytes sourced from a user-controlled input.

License

Copyright (C) 2021 Connor Horman

This repository is dual licensed under the terms of the MIT and Apachev2 license. If you deal in the software, you must comply with the terms of both licenses.

Any contributions intentionally submitted by you for inclusion in this repository must be dual licensed as above.


lib.rs:

Support for fake enum types, that act like rust enums, but all values of the underlying type are accepted as values. See the macro fake_enum for details. The type of an elf file The type of an Nbt Tag

No runtime deps