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

Breaks under re-export #260

Open
blueforesticarus opened this issue Mar 19, 2023 · 1 comment
Open

Breaks under re-export #260

blueforesticarus opened this issue Mar 19, 2023 · 1 comment

Comments

@blueforesticarus
Copy link

blueforesticarus commented Mar 19, 2023

I'd like to be able to use strum EnumString (and others) under reexport from a "common-stuff" crate in my workspace repo.

Currently trying to use the reexported EnumString results in could not find strum in the list of imported crates.

I noticed with serde this is fixable with
#[serde(crate = "self::serde")] // must be below the derive attribute
and the discussion here seems to imply even this should not be needed serde-rs/serde#1465

it looks like several crates have pull requests to fix this issue.

@Peternator7
Copy link
Owner

Strum does support this feature for most of it's derives, but I guess it isn't documented :/. Can you try #[strum(crate = "...")] to see if it works in your case?

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

No branches or pull requests

2 participants