Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

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
Member

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
Member 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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant