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

derive: Shrink dependency list #771

Closed
wants to merge 1 commit into from
Closed

derive: Shrink dependency list #771

wants to merge 1 commit into from

Conversation

Kijewski
Copy link
Contributor

We don't need the more advanced features that quote and syn offer. This PR opts out of using them.

Until rust-lang/rust#92565 is resolved, we cannot give a better error location than #[derive(Template)] itself. So we don't need to keep track of the span in our struct CompileError, and we can remove the dependency of proc_macro2.

We don't need the more advanced features that `quote` and `syn` offer.
This PR opts out of using them.

Until <rust-lang/rust#92565> is resolved, we
cannot give a better error location than `#[derive(Template)]` itself.
So we don't need to keep track of the span in our `struct CompileError`,
and we can remove the dependency of `proc_macro2`.
@Kijewski
Copy link
Contributor Author

I didn't notice that the extra features were pulled in by some other dependency and they were, if fact, needed. :D

The direct dependency to proc-macro2 could still be removed, but it gets pulled in by syn anyway.

@Kijewski Kijewski closed this Jan 30, 2023
@Kijewski Kijewski deleted the pr-less-syn branch January 30, 2023 10:22
This pull request was closed.
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

Successfully merging this pull request may close these issues.

1 participant