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

Support for #[serde(crate = "path")] #16

Closed
tguichaoua opened this issue Sep 19, 2022 · 1 comment
Closed

Support for #[serde(crate = "path")] #16

tguichaoua opened this issue Sep 19, 2022 · 1 comment

Comments

@tguichaoua
Copy link

I'm using rocket that exposes serde via the path rocket::serde.
To implement (de)serialize I'm using the attribute #[serde(crate = "rocket::serde")] to specifiy the path to serde.

@dtolnay
Copy link
Owner

dtolnay commented Oct 30, 2023

I would prefer not to build this workaround into this crate.

Eventually rust-lang/rust#54363 (comment) will give a more robust way to make re-exported derive macros work without needing this kind of workaround.

In the meantime, it would be fine for someone else to maintain a more fully featured repr serde derive library that can handle this use case with an attribute.

@dtolnay dtolnay closed this as completed Oct 30, 2023
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