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

Expose high-level functions for derivation from darling_core #57

Closed
TedDriggs opened this issue Feb 6, 2019 · 0 comments
Closed

Expose high-level functions for derivation from darling_core #57

TedDriggs opened this issue Feb 6, 2019 · 0 comments
Assignees

Comments

@TedDriggs
Copy link
Owner

Most of darling_core::options and darling_core::codegen don't need to be public. Having too broad a public API surface means breaking changes that could be avoided.

Change

Expose a new function in darling_core for each derivable trait. That should the correct syn element as input and return a proc_macro2::TokenStream. This avoids darling_core depending on proc_macro directly.

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

1 participant