Skip to content

Cannot reexport num-derive proc_macros #34

@jean-airoldie

Description

@jean-airoldie

Since the proc_macro implementation explicity declares an extern num_traits crate, any crate that wants to use it must also depend on num-traits.

extern crate num_traits as _num_traits;

This can be a problem in case a crate reexport a num-derive proc macros because it forces the user to also depend on num-traits otherwise it produces: error[E0463]: can't find crate for _num_traits`.

Would it be possible to add a feature flag that disable this behavior? Specifically it would be the user's responsability to make sure that the num-traits crate is in scope.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions