derive(FromRepr)
This commit is contained in:
@@ -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 }
|
||||
@@ -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
|
||||
};
|
||||
Reference in New Issue
Block a user