andersk / enum_primitive-rs

Macro to generate num::FromPrimitive instances for enum that works in Rust 1.0
MIT License
63 stars 22 forks source link

Don't use the default features of `num` #3

Closed pwoolcoc closed 9 years ago

pwoolcoc commented 9 years ago

num pulls in a bunch of stuff that is not needed for FromPrimitive. Setting default-features = false doesn't preclude the user from adding num to their own Cargo.toml and enabling the default feature set there.