derive(FromRepr)

This commit is contained in:
Intege-rs
2024-11-14 02:09:09 -05:00
parent 03066e2e55
commit d97b86b230
6 changed files with 104 additions and 4 deletions

View File

@@ -6,13 +6,16 @@ edition = "2021"
[features]
default = ["core"]
core = ["sub_core"]
macros = ["sub_macros"]
libm = ["sub_libm"]
pe = ["sub_pe"]
winuser = ["sub_winu", "pe", "sub_pe/windows"]
[dependencies]
sub_core = { workspace = true, optional = true }
sub_libm = { workspace = true, optional = true}
sub_pe = { workspace = true, optional = true }
sub_winu = { workspace = true, optional = true }
sub_winu = { workspace = true, optional = true }
sub_macros = { workspace = true, optional = true }

View File

@@ -14,8 +14,13 @@ macro_rules! import {
};
}
import!(sub_core, core, "core");
import!(sub_libm, libm, "libm");
import!(sub_pe, pe, "pe");
import!(sub_winu, win, "winuser");
/// the macro crate is a proc macro, so it is a bit different.
#[cfg(feature = "macros")]
pub use sub_macros::{
FromRepr
};