Skip to content

Commit 156930f

Browse files
authored
servo: Fix clean build (#9998)
Servo's script crate uses js = { package = "mozjs", git = "https://github.com/servo/mozjs" } which means it would pick mozjs from master. Inside servo this works because of the present `Cargo.lock` file that pins it. But the version of servo we're using doesn't compile with the master branch of mozjs. Unfortunately the `[patch]` section in `Cargo.toml` can't just change the revision, only if also the URL changes. So point mozjs to a fork of ours and then we can pin the correct version that servo also uses.
1 parent 6e46591 commit 156930f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/servo/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,6 @@ gl_generator = "0.14.0"
7272

7373
[[package.metadata.android.uses_permission]]
7474
name = "android.permission.INTERNET"
75+
76+
[patch.'https://github.com/servo/mozjs.git']
77+
mozjs = { git = "https://github.com/slint-ui/mozjs.git", rev = "b9555e20d4abcb206888e8c921373d095db3b1a6" }

0 commit comments

Comments
 (0)