Skip to content

Experiment: Port codegen to Rust - #241

Draft
nicoburns wants to merge 7 commits into
mainfrom
rust-codegen
Draft

Experiment: Port codegen to Rust#241
nicoburns wants to merge 7 commits into
mainfrom
rust-codegen

Conversation

@nicoburns

@nicoburns nicoburns commented Sep 14, 2025

Copy link
Copy Markdown
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 may, for example, 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 <obrufau@igalia.com>
Signed-off-by: Oriol Brufau <obrufau@igalia.com>
Signed-off-by: Oriol Brufau <obrufau@igalia.com>
Signed-off-by: Oriol Brufau <obrufau@igalia.com>
Signed-off-by: Nico Burns <nico@nicoburns.com>
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

3 participants