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"
10
10
readme = " README.md"
11
11
12
12
[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 52
52
//! }
53
53
//! ```
54
54
55
+ #![ no_std]
55
56
56
57
extern crate num_traits;
57
58
58
- pub use std :: option:: Option ;
59
+ pub use core :: option:: Option ;
59
60
pub use num_traits:: FromPrimitive ;
60
61
61
62
/// Helper macro for internal use by `enum_from_primitive!`.
@@ -75,7 +76,6 @@ macro_rules! enum_from_primitive_impl_ty {
75
76
76
77
/// Helper macro for internal use by `enum_from_primitive!`.
77
78
#[ macro_export]
78
- #[ macro_use( enum_from_primitive_impl_ty) ]
79
79
macro_rules! enum_from_primitive_impl {
80
80
( $name: ident, $( $variant: ident ) * ) => {
81
81
impl $crate:: FromPrimitive for $name {
@@ -88,7 +88,6 @@ macro_rules! enum_from_primitive_impl {
88
88
/// Wrap this macro around an `enum` declaration to get an
89
89
/// automatically generated implementation of `num::FromPrimitive`.
90
90
#[ macro_export]
91
- #[ macro_use( enum_from_primitive_impl) ]
92
91
macro_rules! enum_from_primitive {
93
92
(
94
93
$( #[ $enum_attr: meta] ) *
You can’t perform that action at this time.
0 commit comments