Skip to content

Conversation

nicoburns
Copy link
Collaborator

This is pretty early (and I am not actively working on this), but I started porting Stylo's python codegen to Rust. The main benefit of this in the short term would be eliminating the Python build dependency which would:

  • Be helpful to users of Stylo on Windows where Python does not come preinstalled
  • Allow us to remove part of the "diff" with upstream (vendored python libraries)
  • Make us less likely to break when upstream modifies it's python env or upgrades python deps

In the long term, there is also the potential for people to use a cleaned up version of the codegen to create their own custom versions of Stylo (that for instance implement non-standard CSS properties).

delan and others added 7 commits September 3, 2025 18:40
Any ancestors of this commit are from upstream mozilla-central, with
some filtering and renaming. Our patches and sync tooling start here.

The sync tooling has all been squashed into this commit, based on:
https://github.com/servo/stylo/commits/64731e10dc8ef87ef52aa2fb9f988c3b2530f3a7
This is a rebase of 35cd802,
but with 6a39161 reverted.

Signed-off-by: Oriol Brufau <[email protected]>
Signed-off-by: Oriol Brufau <[email protected]>
Signed-off-by: Nico Burns <[email protected]>
@nicoburns nicoburns added enhancement New feature or request help wanted Extra attention is needed labels Sep 14, 2025
@nicoburns nicoburns changed the title WIP: Port code to Rust WIP: Port codegen to Rust Sep 14, 2025
@nicoburns nicoburns changed the title WIP: Port codegen to Rust Experiment: Port codegen to Rust Sep 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request help wanted Extra attention is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants