Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export num_traits dependency as a public module #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Dushistov
Copy link

I want to use your crate, but do not want to manualy add dependicies of your crate.
As suggested https://stackoverflow.com/questions/44876113/how-do-i-use-a-crate-from-another-crate-without-explicitly-defining-a-new-depend here I suggest export num_traits.

@cardoe
Copy link

cardoe commented Aug 30, 2017

You really shouldn't need that. You should be able to use enum_primitive::FromPrimitive; in your code and that's it. You don't need to ever touch num_traits.

@cardoe cardoe mentioned this pull request Sep 3, 2017
@EkremDincel
Copy link

@cardoe Somebody should add this information to the crates.io page, the example here is not working in 1.49 but use enum_primitive::FromPrimitive; works.

@cardoe
Copy link

cardoe commented Jan 10, 2021

@EkremDincel Unfortunately this crate is mostly dead. I've written the derive for it as a separate project and I've asked the author to let me take it over so I could merge the two and clean everything up but I've never heard back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants