File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -10,4 +10,5 @@ homepage = "https://github.com/andersk/enum_primitive-rs"
1010readme = " README.md"
1111
1212[dependencies .num-traits ]
13- version = " ^0.1"
13+ version = " 0.2"
14+ default-features = false
Original file line number Diff line number Diff line change 5252//! }
5353//! ```
5454
55+ #![ no_std]
5556
5657extern crate num_traits;
5758
58- pub use std :: option:: Option ;
59+ pub use core :: option:: Option ;
5960pub use num_traits:: FromPrimitive ;
6061
6162/// Helper macro for internal use by `enum_from_primitive!`.
@@ -75,7 +76,6 @@ macro_rules! enum_from_primitive_impl_ty {
7576
7677/// Helper macro for internal use by `enum_from_primitive!`.
7778#[ macro_export]
78- #[ macro_use( enum_from_primitive_impl_ty) ]
7979macro_rules! enum_from_primitive_impl {
8080 ( $name: ident, $( $variant: ident ) * ) => {
8181 impl $crate:: FromPrimitive for $name {
@@ -88,7 +88,6 @@ macro_rules! enum_from_primitive_impl {
8888/// Wrap this macro around an `enum` declaration to get an
8989/// automatically generated implementation of `num::FromPrimitive`.
9090#[ macro_export]
91- #[ macro_use( enum_from_primitive_impl) ]
9291macro_rules! enum_from_primitive {
9392 (
9493 $( #[ $enum_attr: meta] ) *
You can’t perform that action at this time.
0 commit comments