You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Most of
darling_core::options
anddarling_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 correctsyn
element as input and return aproc_macro2::TokenStream
. This avoidsdarling_core
depending onproc_macro
directly.The text was updated successfully, but these errors were encountered: