Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
446 commits
Select commit Hold shift + click to select a range
e2a573a
docs(rust-plugin): describe the value model and its boundary
mellyeliu Dec 2, 2026
29a1fd5
refactor(rust-plugin): keep evaluated values for 'static stores on th…
mellyeliu Dec 2, 2026
cd3cc6e
test(rust-plugin): port stylex-state's state manager, file and evalua…
mellyeliu Dec 2, 2026
2f1c6f0
Merge branch 'oxc-state-tests' into oxc-core
mellyeliu Dec 2, 2026
5265adf
refactor(rust-plugin): let auto-deref reach the shared builder
mellyeliu Dec 2, 2026
ca3a133
refactor(rust-plugin): port stylex-evaluator's library to oxc
mellyeliu Dec 2, 2026
de10fe1
Merge branch 'oxc-core' into oxc-eval
mellyeliu Dec 2, 2026
c8a569e
fix(rust-plugin): match SWC's expression positions in oxc code frames
mellyeliu Dec 2, 2026
48fc748
Merge branch 'oxc-diag' into oxc-core
mellyeliu Dec 2, 2026
929020d
Merge branch 'oxc-eval' into oxc-core
mellyeliu Dec 2, 2026
e25dd5c
refactor(rust-plugin): make stylex-diagnostics a plain dependency of …
mellyeliu Dec 2, 2026
03851a7
refactor(rust-plugin): read the injection idents back as the SWC stat…
mellyeliu Dec 2, 2026
a04ffdd
feat(rust-plugin): rewrite Flow match for the oxc front end
mellyeliu Dec 2, 2026
c77c347
feat(rust-plugin): count only real Flow fallbacks and add a Flow IR d…
mellyeliu Dec 2, 2026
6a44a75
test(rust-plugin): pin media-query passthrough and nested coercion re…
mellyeliu Dec 2, 2026
f2e306a
fix(rust-plugin): refuse a value node from another host
mellyeliu Dec 2, 2026
b216a0d
refactor(rust-plugin): give the style transformers an AST-free state …
mellyeliu Dec 2, 2026
8b1b56c
test(rust-plugin): port the evaluator's test scaffolding to oxc
mellyeliu Dec 2, 2026
ba83aff
test(rust-plugin): port the evaluator's evaluate and node tests to oxc
mellyeliu Dec 2, 2026
0c85626
test(rust-plugin): port the evaluator's convertor, evaluate, growable…
mellyeliu Dec 2, 2026
348862d
test(rust-plugin): port the evaluator's resolution-order and memo tes…
mellyeliu Dec 2, 2026
89a06d7
test(rust-plugin): port the evaluator's integration tests to oxc
mellyeliu Dec 2, 2026
05e2f44
test(rust-plugin): tidy the evaluator test helpers after the oxc port
mellyeliu Dec 2, 2026
9127ef3
Merge branch 'oxc-eval-tests' into oxc-core
mellyeliu Dec 2, 2026
56f2241
fix(rust-plugin): treat a call at offset 0 as a real execution position
mellyeliu Dec 2, 2026
2cc97a9
feat(rust-plugin): keep Flow types in the oxc front end's IR as opaqu…
mellyeliu Dec 2, 2026
ca96fc9
fix(rust-plugin): give every value host an identity no other host shares
mellyeliu Dec 2, 2026
ca008b7
test(rust-plugin): check Flow through the oxc front end against SWC
mellyeliu Dec 2, 2026
83cab11
test(rust-plugin): pin numbering exhaustion and unissued origins
mellyeliu Dec 2, 2026
98ca6bc
feat(rust-plugin): line index and comment map for oxc nodes
mellyeliu Dec 2, 2026
c99a026
feat(rust-plugin): splice emitter on oxc edits
mellyeliu Dec 2, 2026
c1f4c7d
feat(rust-plugin): code frames on oxc
mellyeliu Dec 2, 2026
db70cdc
docs(rust-plugin): binder contexts and the core-port foundation
mellyeliu Dec 2, 2026
a2c0c33
refactor(rust-plugin): take host sources without the deprecated fetch…
mellyeliu Dec 2, 2026
c060418
rust-plugin: port stylex-transform's AST layer onto oxc
mellyeliu Dec 2, 2026
d79943e
fix(rust-plugin): address the review of the oxc foundation
mellyeliu Dec 2, 2026
33a4256
rust-plugin: merge the plain style-value model (M1) into the oxc port
mellyeliu Dec 2, 2026
732a99f
rust-plugin: merge the oxc foundation (printer, binder, splice emitte…
mellyeliu Dec 2, 2026
8a416b4
perf(rust-plugin): try oxc on Flow input as is before Flow's parser
mellyeliu Dec 2, 2026
69919ff
fix(rust-plugin): address the re-review of the oxc foundation
mellyeliu Dec 2, 2026
3d47fd4
fix(rust-plugin): update SWC and parse Flow match
mellyeliu Dec 2, 2026
b50c12f
fix(rust-plugin): reparse code frames with the compiler's Flow syntax
mellyeliu Dec 2, 2026
12e1ce5
test(rust-plugin): compile Flow syntax like Babel with hermes-parser
mellyeliu Dec 2, 2026
72c62d1
rust-plugin: run the transform on oxc and splice its edits into the s…
mellyeliu Dec 2, 2026
f15b566
fix(rust-plugin): stop Flow's parser before it overflows the stack
mellyeliu Dec 2, 2026
f3b4700
fix(rust-plugin): address the third review of the oxc foundation
mellyeliu Dec 2, 2026
e32ff9c
rust-plugin: emit like today's guided and general planners
mellyeliu Dec 2, 2026
43be7ad
docs(rust-plugin): describe Flow through Flow's parser in the oxc fro…
mellyeliu Dec 2, 2026
8ec71d1
fix(rust-plugin): address the fourth review of the oxc foundation
mellyeliu Dec 2, 2026
4fb24a8
rust-plugin: keep the arena for compiler functions the host holds
mellyeliu Dec 2, 2026
8b62302
rust-plugin: remove SWC from the compiler
mellyeliu Dec 2, 2026
8821f6c
test(rust-plugin): port stylex-ast value tests to oxc
mellyeliu Dec 2, 2026
c86c115
test(rust-plugin): port stylex-structures base CSS type tests to oxc
mellyeliu Dec 2, 2026
a69a909
fix(rust-plugin): address the fifth review of the oxc foundation
mellyeliu Dec 2, 2026
568467a
rust-plugin: port the root crate's tests to the oxc-only build
mellyeliu Dec 2, 2026
fc55d83
rust-plugin: document the oxc-only compiler; add the Flow text hook
mellyeliu Dec 2, 2026
cfdd3ec
test(rust-plugin): port stylex-nested-config tests to oxc
mellyeliu Dec 2, 2026
2d34219
test(rust-plugin): format the stylex-structures base CSS type test
mellyeliu Dec 2, 2026
6ca60b0
test(rust-plugin): port stylex-transform test support and value-host …
mellyeliu Dec 2, 2026
2239d96
test(rust-plugin): port stylex-transform visitor tests to oxc
mellyeliu Dec 2, 2026
42a9b78
test(rust-plugin): run the current-Babel differential tests on oxc
mellyeliu Dec 2, 2026
da1d9af
test(rust-plugin): port stylex-transform call-transform tests to oxc
mellyeliu Dec 2, 2026
bcb187c
test(rust-plugin): port stylex-transform transformer and structure te…
mellyeliu Dec 2, 2026
56d0382
test(rust-plugin): port stylex-transform util tests to oxc
mellyeliu Dec 2, 2026
91db577
test(rust-plugin): read props runtime output back with oxc
mellyeliu Dec 2, 2026
7a1d256
rust-plugin: merge the Flow front end (interim) into the oxc-only com…
mellyeliu Dec 2, 2026
0920b64
fix(rust-plugin): address the sixth review of the oxc foundation
mellyeliu Dec 2, 2026
ab55642
Merge branch 'oxc-tests' into oxc-top
mellyeliu Dec 2, 2026
602aa4f
rust-plugin: fix the review's must-fixes
mellyeliu Dec 2, 2026
e940a90
rust-plugin: merge the oxc foundation's review fixes (0920b64f)
mellyeliu Dec 2, 2026
5a24bab
fix(rust-plugin): emit a Flow file SWC read for the oxc front end as …
mellyeliu Dec 2, 2026
8fd7822
fix(rust-plugin): fix the Flow rewrite where review found it wrong
mellyeliu Dec 2, 2026
3cf6e03
docs(rust-plugin): describe the Flow rewrite fixes
mellyeliu Dec 2, 2026
8b8301b
rust-plugin: docs for Flow through Flow's parser; tidy test warnings
mellyeliu Dec 2, 2026
8b55c2e
fix(rust-plugin): address the seventh review of the oxc foundation
mellyeliu Dec 2, 2026
07490f3
fix(rust-plugin): raise arrow parameters with their arrow kind
mellyeliu Dec 2, 2026
4f3bf62
fix(rust-plugin): fix the Flow rewrite where review round 2 found it …
mellyeliu Dec 2, 2026
d306121
docs(rust-plugin): note the Flow round 2 fixes and the copy limit
mellyeliu Dec 2, 2026
c65062a
fix(rust-plugin): refuse copied Flow match always and narrow the keyw…
mellyeliu Dec 2, 2026
c0fdc9b
docs(rust-plugin): note when the fast path's JavaScript reading stands
mellyeliu Dec 2, 2026
09a19be
fix(rust-plugin): find copied Flow match by identity and keep guard e…
mellyeliu Dec 2, 2026
49b4e48
rust-plugin: record parity and speed of the oxc-only compiler
mellyeliu Dec 2, 2026
31af011
rust-plugin: CI for the oxc-only build; lint, format, license inventory
mellyeliu Dec 2, 2026
57b2a6b
perf(rust-plugin): measure Flow parsing on the compiler's parser stack
mellyeliu Dec 2, 2026
e1d3a25
rust-plugin: fix the second review's findings
mellyeliu Dec 2, 2026
5f5055d
rust-plugin: merge the final oxc foundation (07490f36)
mellyeliu Dec 2, 2026
09754c7
docs(rust-plugin): final addon sizes with Flow's parser
mellyeliu Dec 2, 2026
2f4909e
rust-plugin: lint
mellyeliu Dec 2, 2026
f0885f6
rust-plugin: merge the final Flow front end (09754c70); fix the third…
mellyeliu Dec 2, 2026
4bc9ac9
rust-plugin: format and lint the Flow merge
mellyeliu Dec 2, 2026
68b157a
rust-plugin: fix the fourth review's findings
mellyeliu Dec 2, 2026
5c58268
rust-plugin: read enum unknown members as syntax, not text
mellyeliu Dec 2, 2026
5f78ec8
rust-plugin: faster hashing in the core
mellyeliu Dec 2, 2026
ae3a4e3
rust-plugin: record the React Native sample and addon size
mellyeliu Dec 2, 2026
1fa1b5a
rust-plugin: copy the authored program instead of parsing it again
mellyeliu Dec 2, 2026
184db5c
Merge oxc-top (ae3a4e30) into opt-a
mellyeliu Dec 2, 2026
8d440d8
Merge oxc-top (ae3a4e30) into opt-b
mellyeliu Dec 2, 2026
1927ad5
rust-plugin: prepare options once per options object
mellyeliu Dec 2, 2026
a778dea
rust-plugin: keep compiled style rules across files
mellyeliu Dec 2, 2026
2db6c50
rust-plugin: evaluate the stylex.create argument in place
mellyeliu Dec 2, 2026
cfc83e2
rust-plugin: read past oxc's @flow error for the real parse errors
mellyeliu Dec 2, 2026
5b20988
rust-plugin: insert generated statements ahead of blanked Flow declar…
mellyeliu Dec 2, 2026
7c42560
rust-plugin: read Flow input in the code frame's reparse
mellyeliu Dec 2, 2026
197b5b6
rust-plugin: fold literal property values without a fresh evaluation …
mellyeliu Dec 2, 2026
f3796e6
rust-plugin: return files that cannot reference StyleX without parsin…
mellyeliu Dec 2, 2026
bb92540
rust-plugin: insert added imports ahead of leading Flow declarations
mellyeliu Dec 2, 2026
ad5c5fe
rust-plugin: read match alternatives that bind nothing
mellyeliu Dec 2, 2026
ddd41b4
rust-plugin: compile annotated loop head bindings
mellyeliu Dec 2, 2026
47fbfca
rust-plugin: refuse a JSX rewrite only over attributes it may reprint
mellyeliu Dec 2, 2026
46e6615
rust-plugin: compile create() under a type cast
mellyeliu Dec 2, 2026
8dda147
rust-plugin: keep the transform's large stack per thread
mellyeliu Dec 2, 2026
d6d3b06
rust-plugin: copy fewer declarators
mellyeliu Dec 2, 2026
72c35a7
rust-plugin: drop a dynamic style arrow's return type
mellyeliu Dec 2, 2026
25750e2
rust-plugin: read nested as bindings and parenthesized match patterns
mellyeliu Dec 3, 2026
c68e1f3
rust-plugin: cut per-file work in discovery, emission and source setup
mellyeliu Dec 3, 2026
d6af390
rust-plugin: skip the class-name set for a single rule
mellyeliu Dec 3, 2026
dbcbd68
rust-plugin: document the Flow parity changes and the www sample
mellyeliu Dec 3, 2026
4e8ad5f
rust-plugin: fix the first review of opt-a
mellyeliu Dec 3, 2026
693af6a
rust-plugin: keep the file's value cache under the rule memo; bound m…
mellyeliu Dec 3, 2026
ec351b7
rust-plugin: read a Flow file through Flow's parser once per transform
mellyeliu Dec 3, 2026
45e6c00
rust-plugin: format
mellyeliu Dec 3, 2026
1bebd6b
rust-plugin: fix the second review of opt-a
mellyeliu Dec 3, 2026
996bc4b
rust-plugin: fix the first review's findings
mellyeliu Dec 3, 2026
e705273
rust-plugin: test the memo bounds
mellyeliu Dec 3, 2026
d1de6d7
rust-plugin: fix the second review's findings
mellyeliu Dec 3, 2026
87daf21
rust-plugin: fix the third review of opt-a
mellyeliu Dec 3, 2026
1f042e5
Merge opt-b (e7052734) into opt-a
mellyeliu Dec 3, 2026
5109b17
rust-plugin: record parser tokens only for the Flow guards
mellyeliu Dec 3, 2026
da7aea7
rust-plugin: document when ParsedProgram carries tokens
mellyeliu Dec 3, 2026
75d93bc
rust-plugin: fold plain style data without the evaluator's machinery
mellyeliu Dec 3, 2026
791daa9
Merge opt-a (da7aea77) into opt-d
mellyeliu Dec 3, 2026
90e3e71
rust-plugin: look for repeated plain keys only when there are some
mellyeliu Dec 3, 2026
f5f0303
rust-plugin: drop an unused copy of the compiled namespaces
mellyeliu Dec 3, 2026
d063812
rust-plugin: fewer allocations in flatten and compile
mellyeliu Dec 3, 2026
7abb12a
rust-plugin: walk to package.json once per transform and compare its …
mellyeliu Dec 3, 2026
b576f49
rust-plugin: skip subtrees with no StyleX site in the producer and co…
mellyeliu Dec 3, 2026
23291c4
rust-plugin: size the bindings collector's name sets and copy rebound…
mellyeliu Dec 3, 2026
9bf8479
rust-plugin: read the per-file options in one pass
mellyeliu Dec 3, 2026
bc2aa5b
rust-plugin: collect only the statement lists an edit reaches
mellyeliu Dec 3, 2026
c771a0a
rust-plugin: do not keep a long CSS value cache key buffer
mellyeliu Dec 3, 2026
1c7ac87
rust-plugin: skip subtrees with no site in the mark step of the final…
mellyeliu Dec 3, 2026
b0602b1
rust-plugin: walk only the rewritten parts when planning edits
mellyeliu Dec 3, 2026
5fd5888
rust-plugin: know a declarator recorded before the discovery walk ent…
mellyeliu Dec 3, 2026
86cbbac
Merge opt-d (c771a0ac) into opt-e
mellyeliu Dec 3, 2026
5947faf
rust-plugin: know a top-level declarator the discovery walk left unch…
mellyeliu Dec 3, 2026
8111fe1
rust-plugin: look up only sizable nodes, and only whole-word name occ…
mellyeliu Dec 3, 2026
18c483a
rust-plugin: key only the call initializers a StyleX call can match
mellyeliu Dec 3, 2026
cfedbd8
rust-plugin: collect declaration uses straight into their sets
mellyeliu Dec 3, 2026
bbbfe94
rust-plugin: build the live set over the declaration graph only
mellyeliu Dec 3, 2026
fdd264a
rust-plugin: collect only references to the graph's declarations
mellyeliu Dec 3, 2026
9e801e9
rust-plugin: reuse a declarator's recorded copy for its top-level exp…
mellyeliu Dec 3, 2026
0c43d28
rust-plugin: record call positions only where StyleX calls can be
mellyeliu Dec 3, 2026
bc5b562
rust-plugin: fix the first review of opt-e
mellyeliu Dec 3, 2026
8ffde6f
Merge branch 'flow-parity' into integ
mellyeliu Dec 3, 2026
e5f8262
rust-plugin: fix the second review of opt-e
mellyeliu Dec 3, 2026
c201522
fix(rust-plugin): read generated JSX attribute strings back as writte…
mellyeliu Dec 3, 2026
75a8a3b
test(rust-plugin): parse Flow error cases past the pre-parse gate
mellyeliu Dec 3, 2026
47b3a7b
rust-plugin: test core callbacks that write a package.json end to end
mellyeliu Dec 3, 2026
8f31447
Merge integ (75a8a3be) into opt-e
mellyeliu Dec 3, 2026
a03cc07
rust-plugin: time the Flow front end stages and digest what it reads
mellyeliu Dec 3, 2026
c83fb82
rust-plugin: find the Flow syntax a reprint would lose in linear time
mellyeliu Dec 3, 2026
1e57927
rust-plugin: skip span adjustment for spans no Flow fact touches
mellyeliu Dec 3, 2026
7a72040
rust-plugin: lex identifiers and blanks faster in the vendored Flow p…
mellyeliu Dec 3, 2026
e7cf0aa
rust-plugin: read Flow without attaching comments to nodes
mellyeliu Dec 3, 2026
aef6493
rust-plugin: look Flow keywords up with one match and hash parser set…
mellyeliu Dec 3, 2026
14ef5d5
rust-plugin: find line starts and map rewritten offsets faster
mellyeliu Dec 3, 2026
f06c06a
rust-plugin: allocate no empty comment lists in the vendored Flow parser
mellyeliu Dec 3, 2026
7cd2831
rust-plugin: lex runs of plain JSX, template and comment text at once
mellyeliu Dec 3, 2026
f0e126e
chore(rust-plugin): pass the CI clippy gate
mellyeliu Dec 3, 2026
b8a38d1
Merge branch 'feat/stylex-rust-port' into rust-perf
mellyeliu Dec 3, 2026
452e76d
fix(rust-plugin): print `new F()` as a callee or member object
mellyeliu Dec 3, 2026
8848663
test(rust-plugin): set the optimizer hint through a mutable borrow
mellyeliu Dec 3, 2026
ac40994
fix(rust-plugin): keep rewrites in decorators before an export
mellyeliu Dec 3, 2026
6ce7be5
fix(rust-plugin): end compact Flow enums before the next statement
mellyeliu Dec 3, 2026
41c9102
fix(rust-plugin): check only the Flow text the emitter reprints
mellyeliu Dec 3, 2026
56e73d4
fix(rust-plugin): reject module syntax in TypeScript read as a script
mellyeliu Dec 3, 2026
7d877d2
perf(rust-plugin): bound the options cache by bytes
mellyeliu Dec 3, 2026
fc0f658
fix(rust-plugin): keep Flow typeof specifiers in augmented imports
mellyeliu Dec 3, 2026
b9cdbed
fix(rust-plugin): count every kept line terminator in source maps
mellyeliu Dec 3, 2026
f70dc3c
docs(rust-plugin): refresh the notices table and stale comments
mellyeliu Dec 3, 2026
c727293
rust-plugin: test the vendored Flow parser's speed changes against th…
mellyeliu Dec 3, 2026
8e2f639
style(rust-plugin): format the final review tests
mellyeliu Dec 3, 2026
6ce5ec5
chore(rust-plugin): regenerate the license inventory
mellyeliu Dec 3, 2026
d92d07a
fix(rust-plugin): keep the CR of a CRLF a generated column
mellyeliu Dec 3, 2026
af0a870
fix(rust-plugin): count only the source the printer copied as kept
mellyeliu Dec 3, 2026
9719448
fix(rust-plugin): guard compact Flow enums across erased declarations
mellyeliu Dec 3, 2026
ede794c
fix(rust-plugin): reject import-equals require in TypeScript scripts
mellyeliu Dec 3, 2026
b43ff1b
fix(rust-plugin): read typeof past comments in augmented imports
mellyeliu Dec 3, 2026
ca225f2
perf(rust-plugin): count typed options in the options cache bound
mellyeliu Dec 3, 2026
08540fe
docs(rust-plugin): note that CI runs the unit tests through the script
mellyeliu Dec 3, 2026
f3dd95b
style(rust-plugin): pass the CI fmt and clippy gates
mellyeliu Dec 3, 2026
3152ee8
fix(rust-plugin): ask a custom resolver for every lookup
mellyeliu Dec 3, 2026
4001c92
fix(rust-plugin): copy a generic method's type parameters with it
mellyeliu Dec 3, 2026
f429a20
fix(rust-plugin): keep typeof past line comments and U+FEFF
mellyeliu Dec 3, 2026
11825fa
fix(rust-plugin): reject every import-equals and nested export in scr…
mellyeliu Dec 3, 2026
bd26493
chore(rust-plugin): disallow oxc's unsound Visit::alloc
mellyeliu Dec 3, 2026
c05a87d
style(rust-plugin): format the final review tests
mellyeliu Dec 3, 2026
6d32510
fix(rust-plugin): keep decorators on reprinted private methods
mellyeliu Dec 3, 2026
ea638d6
fix(rust-plugin): look up paths and packages afresh for every request
mellyeliu Dec 3, 2026
d9b5ff0
docs(rust-plugin): mark the oxc vocabulary crate internal
mellyeliu Dec 3, 2026
40f64ba
style(rust-plugin): format the private method decorator test
mellyeliu Dec 3, 2026
e90ec97
fix(rust-plugin): keep the parentheses a reprinted decorator needs
mellyeliu Dec 3, 2026
c420697
fix(rust-plugin): print one annotation on a reprinted Flow rest param…
mellyeliu Dec 3, 2026
0467ca7
test(rust-plugin): cover arrow, function and object decorator express…
mellyeliu Dec 3, 2026
0e76955
fix(rust-plugin): print an anonymous class's type parameters
mellyeliu Dec 3, 2026
1a303b2
fix(rust-plugin): group reprinted statements that start like a declar…
mellyeliu Dec 3, 2026
ff84550
fix(rust-plugin): evaluate a computed __proto__ key as Babel does
mellyeliu Dec 3, 2026
0372291
fix(rust-plugin): copy blanked Flow declarations into reprinted blocks
mellyeliu Dec 3, 2026
1afe6fa
test(rust-plugin): expect Babel's answers for computed __proto__ keys
mellyeliu Dec 3, 2026
ab56f4b
fix(rust-plugin): copy back only blanked Flow text between statements
mellyeliu Dec 3, 2026
e0144df
fix(rust-plugin): reprint Flow guards, try and switch bodies, and <co…
mellyeliu Dec 3, 2026
7580a27
fix(rust-plugin): keep declarations Flow types read with typeof
mellyeliu Dec 3, 2026
1010f93
fix(rust-plugin): follow Babel's ordered __proto__ assignments
mellyeliu Dec 3, 2026
e457b5c
fix(rust-plugin): group instantiation statements and keep trailing ca…
mellyeliu Dec 3, 2026
6f0fc3e
fix(rust-plugin): restore Flow this parameters and decode typeof names
mellyeliu Dec 3, 2026
c4ec7b9
fix(rust-plugin): assign spread __proto__ entries through the setter
mellyeliu Dec 3, 2026
8b14505
test(rust-plugin): expect a Flow this parameter to be restorable
mellyeliu Dec 3, 2026
0c8bd67
fix(rust-plugin): reprint typed arrow bodies, static and emptied blocks
mellyeliu Dec 3, 2026
7d8b449
fix(rust-plugin): restore this parameters after comments and keep hooks
mellyeliu Dec 3, 2026
83f0fae
fix(rust-plugin): model the prototype chain __proto__ assignments build
mellyeliu Dec 3, 2026
669e8a7
fix(rust-plugin): group TS comparisons, keep declared Flow fields
mellyeliu Dec 3, 2026
fe26517
fix(rust-plugin): answer own-key questions on known chains and match pow
mellyeliu Dec 3, 2026
d52d3a5
test(rust-plugin): expect own-key answers on a known custom prototype
mellyeliu Dec 3, 2026
5ef91e9
fix(rust-plugin): compute exponentiation with V8's fdlibm pow
mellyeliu Dec 3, 2026
9558266
fix(rust-plugin): honor own methods and model array and nested protot…
mellyeliu Dec 3, 2026
4ba3f6a
fix(rust-plugin): refuse printed Flow match, keep class gaps and heri…
mellyeliu Dec 3, 2026
3701cc7
style(rust-plugin): satisfy clippy in the fdlibm pow port
mellyeliu Dec 3, 2026
98aec37
fix(rust-plugin): plan a Flow match by its argument and case bodies
mellyeliu Dec 3, 2026
00f9fdb
fix(rust-plugin): read default-exported Flow enums
mellyeliu Dec 3, 2026
ab641d7
fix(rust-plugin): fold a power only where every engine build agrees
mellyeliu Dec 3, 2026
57f3664
fix(rust-plugin): use mimalloc v2 so later Node workers do not crash
mellyeliu Dec 3, 2026
89ea79d
fix(rust-plugin): refuse a Flow component keyword before a line break
mellyeliu Dec 3, 2026
a482283
fix(rust-plugin): do not take x ** -1 from fdlibm's reciprocal
mellyeliu Dec 3, 2026
c840b89
fix(rust-plugin): refuse a bodyless Flow component
mellyeliu Dec 3, 2026
161fe66
fix(rust-plugin): count every printed copy of authored code as regene…
mellyeliu Dec 3, 2026
62d3543
fix(rust-plugin): keep copied Flow gaps out of the regenerated parts
mellyeliu Dec 3, 2026
a370a70
fix(rust-plugin): count JavaScript line terminators in composed maps
mellyeliu Dec 3, 2026
c2395ce
fix(rust-plugin): count JavaScript lines only for the emitter's own maps
mellyeliu Dec 3, 2026
a29d4d3
perf(rust-plugin): merge the Flow front end speed work
mellyeliu Dec 3, 2026
262ece2
ci: skip recorded Rust test goldens in the spelling check
mellyeliu Dec 3, 2026
d2bd823
chore: merge facebook/stylex main into feat/stylex-rust-port
mellyeliu Dec 3, 2026
7e46b88
fix(rust-plugin): sort compiler output by UTF-16 code units
mellyeliu Dec 3, 2026
5090051
feat(rust-plugin): default styleResolution to application-order
mellyeliu Dec 3, 2026
366b63e
fix(rust-plugin): keep shorthand resets as null in dynamic styles
mellyeliu Dec 3, 2026
de3b14c
ci: skip the Rust binder namespace test inputs in prettier and eslint
mellyeliu Dec 3, 2026
bbf66c5
test(rust-plugin): update Node suites for the application-order default
mellyeliu Dec 3, 2026
6305bd3
fix(rust-plugin): join nested defineVars at-rules in UTF-16 order
mellyeliu Dec 3, 2026
77c10f7
fix(rust-plugin): keep deep Flow input within the stack on every plat…
mellyeliu Dec 3, 2026
4af6af8
ci(rust-plugin): build @stylexjs/stylex without cross-env on Windows
mellyeliu Dec 3, 2026
86aa3b9
test(rust-plugin): run the vendored Flow parser's file_key tests only…
mellyeliu Dec 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ module.exports = {
'**/*.d.ts',
'**/pages.gen.ts',
'**/devtools-extension/extension/**',
// Test fixtures of the vendored StyleX SWC crates
'packages/@stylexjs/rust-plugin/crates/**/fixtures/**',
// Binder test inputs for the Rust compiler: their goldens are keyed by a hash
// of each file's bytes and list identifier offsets, and they redeclare and
// leave names unused on purpose.
'packages/@stylexjs/rust-plugin/crates/stylex-frontend-oxc/tests/namespaces/**',
],
overrides: [
{
Expand Down
121 changes: 121 additions & 0 deletions .github/workflows/rust-compiler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
name: rust-compiler

on:
pull_request:
types: [opened, synchronize, reopened]
paths:
- 'packages/@stylexjs/rust-plugin/**'
- 'packages/@stylexjs/babel-plugin/**'
- 'packages/@stylexjs/shared/**'
- 'packages/style-value-parser/**'
- '.github/workflows/rust-compiler.yml'
push:
branches: ['main']
paths:
- 'packages/@stylexjs/rust-plugin/**'
- 'packages/@stylexjs/babel-plugin/**'
- 'packages/@stylexjs/shared/**'
- 'packages/style-value-parser/**'
- '.github/workflows/rust-compiler.yml'

permissions:
contents: read

jobs:
native:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 90
defaults:
run:
shell: bash
env:
CARGO_BUILD_JOBS: '2'
steps:
# Keep sources byte-identical to the repository (rustfmt checks Unix
# newlines) and allow the deepest vendored paths.
- name: Configure Git for Windows checkouts
if: runner.os == 'Windows'
run: |
git config --global core.autocrlf false
git config --system core.longpaths true
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: '24.x'
cache: yarn
cache-dependency-path: yarn.lock
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: '1.99.1'
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
with:
workspaces: packages/@stylexjs/rust-plugin
# Formatting and lint fail fast, before the release build.
- name: Rust formatting
run:
cargo fmt --manifest-path packages/@stylexjs/rust-plugin/Cargo.toml --
--check
- name: Rust lint
run: |
cargo clippy --locked --manifest-path packages/@stylexjs/rust-plugin/Cargo.toml --all-targets -- -D warnings
cargo clippy --locked --manifest-path packages/@stylexjs/rust-plugin/Cargo.toml --features node --lib -- -D warnings
- run: corepack prepare yarn@1.22.22 --activate
- run: yarn install --frozen-lockfile --ignore-scripts
# @stylexjs/stylex's build runs rollup through cross-env. On Windows
# cross-spawn 7.1 quotes the bare command name for cmd.exe, and a quoted
# batch file found on PATH reads %~dp0 as the working directory, so
# yarn's workspace-local rollup.cmd looks two directories above the
# checkout. Here npm runs rollup itself, as it does for babel-plugin.
- name: Build the JavaScript packages the suites import
run: |
npm run build --workspace=style-value-parser --workspace=@stylexjs/shared
npm run prebuild --workspace=@stylexjs/stylex
BABEL_ENV=cjs npm exec --workspace=@stylexjs/stylex -- rollup -c ./rollup.config.mjs
BABEL_ENV=esm npm exec --workspace=@stylexjs/stylex -- rollup -c ./rollup.config.mjs
npm run build --workspace=@stylexjs/babel-plugin
- name: Build native compiler
env:
STYLEX_NATIVE_TEST_HOOKS: '1'
run: npm run build:native --workspace=@stylexjs/rust-plugin
- name: Check the addon for build-machine paths
run: node packages/@stylexjs/rust-plugin/scripts/check-binary-paths.cjs
- name: Rust dependency license inventory is current
if: runner.os == 'Linux'
working-directory: packages/@stylexjs/rust-plugin
# The build fetched only Linux crates; the inventory covers every target.
run: |
cargo fetch --locked
node scripts/licenses.cjs --check
# The unchanged JS suite hardcodes POSIX paths in snapshots and mocks, so
# it does not pass on Windows even with the JS compiler; there the native
# run is compared test for test against the JS compiler instead.
- name: Current Babel reference suite
if: runner.os != 'Windows'
run: node packages/@stylexjs/rust-plugin/scripts/parity.cjs babel
- name:
Rust, native API, bundler, and unchanged Babel suites on the native
compiler
env:
STYLEX_PARITY_MODE:
${{ runner.os == 'Windows' && 'compare' || 'rust' }}
run: npm run test:native --workspace=@stylexjs/rust-plugin
# The addon targets N-API 8, so the same build runs on every supported Node.
- uses: actions/setup-node@v7
if: runner.os == 'Linux'
with:
node-version: '22.x'
- name: JavaScript suites on Node 22
if: runner.os == 'Linux'
run: node packages/@stylexjs/rust-plugin/scripts/test.cjs --js-only
- uses: actions/setup-node@v7
if: runner.os == 'Linux'
with:
node-version: '18.x'
- name: JavaScript suites on Node 18
if: runner.os == 'Linux'
run: node packages/@stylexjs/rust-plugin/scripts/test.cjs --js-only
15 changes: 15 additions & 0 deletions .github/workflows/typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,24 @@ extend-exclude = [
"packages/**/__tests__/",
# Fixture data has lots of typos
"packages/benchmarks/**/fixtures/",
# Vendored third-party crate
# Vendored StyleX SWC crates: upstream identifiers and test data
"packages/@stylexjs/rust-plugin/crates/",
# Third-party crate names and verbatim license texts
"packages/@stylexjs/rust-plugin/LICENSE_PROVENANCE.json",
"packages/@stylexjs/rust-plugin/RUST_DEPENDENCY_LICENSES.md",
"packages/@stylexjs/rust-plugin/scripts/licenses-supplement.json",
"packages/@stylexjs/rust-plugin/THIRD_PARTY_NOTICES.md",
# Recorded golden outputs (source maps and verdicts) for the Rust tests
"packages/@stylexjs/rust-plugin/tests/support/*_goldens.json",
"packages/@stylexjs/rust-plugin/tests/support/*_verdicts.txt",
]

[default.extend-words]
# Ignore false-positives
stylex = "stylex"
nd = "nd"

[default.extend-identifiers]
# A generated StyleX variable hash used in test fixtures
kLKAdn = "kLKAdn"
5 changes: 4 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@ examples/example-cli/src
packages/docs/.source
devtools-extension/extension
**/devtools-extension/extension/assets/**
examples/example-sveltekit/.svelte-kit/**
examples/example-sveltekit/.svelte-kit/**
# Binder test inputs: goldens are keyed by a hash of each file's bytes and list
# identifier byte offsets, so reformatting would invalidate them.
packages/@stylexjs/rust-plugin/crates/stylex-frontend-oxc/tests/namespaces
5 changes: 5 additions & 0 deletions packages/@stylexjs/rust-plugin/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Every text file in this package is LF in the working tree, on Windows as well,
# matching the vendored stylex-swc-plugin. Git decides what is text by content.
* text=auto eol=lf
# Verbatim third-party license texts, some with CRLF line endings.
RUST_DEPENDENCY_LICENSES.md -text
5 changes: 5 additions & 0 deletions packages/@stylexjs/rust-plugin/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/target/
/native/
*.tgz
!crates/stylex-path-resolver/fixtures/**/node_modules
!crates/stylex-path-resolver/fixtures/**/node_modules/**
Loading
Loading