Closed Bug 1478330 Opened Last year Closed Last year

Add infrastructure to generate enums from the rust definition instead of duplicating code.


(Core :: CSS Parsing and Computation, enhancement, P2)




Tracking Status
firefox63 --- fixed


(Reporter: emilio, Assigned: emilio)




(1 file)

Going to need this to make appearance not suck.
We use the same setup WR uses, which is checking-in the files.

But I think it's much better than keeping the two things in sync manually :)

When you add a new value, you need to add it to the rust source, then run the
command, but since it doesn't need to build the style crate (it uses the Rust
AST, doesn't build) there's no problem.
Blocks: 1478391
Comment on attachment 8994807 [details]
Bug 1478330: Generate StyleDisplay using cbindgen. r=xidorn,heycam

Cameron McCormack (:heycam) has approved the revision.
Attachment #8994807 - Flags: review+
Pushed by
Generate StyleDisplay using cbindgen. r=heycam
Backed out changeset 230ea1f373ff (Bug 1478330) for Linting failure on a CLOSED TREE

Failure log:

[vcs 2018-07-26T13:39:19.117Z] transferred 2.42 GB in 77.7 seconds (31.9 MB/sec)
[vcs 2018-07-26T13:39:19.892Z] finished applying clone bundle
[vcs 2018-07-26T13:39:20.349Z] searching for changes
[vcs 2018-07-26T13:39:34.064Z] unhandled URLError; reason type: str; value: Internal Server ErrorPERFHERDER_DATA: {"framework": {"name": "vcs"}, "suites": [{"extraOptions": ["c3.xlarge"], "lowerIsBetter": true, "name": "clone_errored", "shouldAlert": false, "subtests": [], "value": 93.39171290397644}, {"extraOptions": ["c3.xlarge"], "lowerIsBetter": true, "name": "overall", "shouldAlert": false, "subtests": [], "value": 93.89301300048828}]}
[vcs 2018-07-26T13:39:34.064Z] abort: HTTP Error 500: Internal Server Error
[taskcluster 2018-07-26 13:39:36.140Z] === Task Finished ===
[taskcluster 2018-07-26 13:39:36.221Z] Artifact "public" not found at "/builds/worker/artifacts"
[taskcluster 2018-07-26 13:39:36.915Z] Unsuccessful task run with exit code: 255 completed in 131.302 seconds
Flags: needinfo?(emilio)
Backout by
Backed out changeset 230ea1f373ff for Linting failure on a CLOSED TREE
That failure is not related to this patch. Looks like a server error.
Flags: needinfo?(emilio)
Pushed by
Generate StyleDisplay using cbindgen. r=heycam
Blocks: 1478813
Closed: Last year
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in before you can comment on or make changes to this bug.