Skip to content

Remove dependency on Syntex #540

@dtolnay

Description

@dtolnay

We depend on Syntex for three things:

  • parsing
  • quasi
  • aster

I wrote a Rust parser https://github.com/dtolnay/syn and quasi-quoter https://github.com/dtolnay/quote which together build in 8.1 seconds (including all their dependencies). Syntex (including quasi and aster and dependencies) builds in 65 seconds so it is a decent improvement.

I am going to start porting serde_codegen over to these. For now serde_codegen will still need Syntex as a shim but serde_derive can disable it with a feature flag and use the new approach directly.

This will eliminate the biggest advantage of serde_macros over serde_derive - compile time. Once serde_derive is off of Syntex I propose that we stop supporting serde_macros.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions