From eb675865e80b292d70b2bfc25f364063c86f230d Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Tue, 3 Jun 2025 14:55:57 -0500 Subject: [PATCH] Use unified mozjs build. Signed-off-by: Josh Matthews --- Cargo.lock | 6 +++--- Cargo.toml | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 02d9e3a7ae1..2ee6c01e128 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4692,7 +4692,7 @@ dependencies = [ [[package]] name = "mozjs" version = "0.14.1" -source = "git+https://github.com/servo/mozjs#728acdf3d4ce0604e9f75dd1d539dc6f291ccec7" +source = "git+https://github.com/redfire75369/mozjs?branch=build%2Funified#c195b8a1fa4b1b2dcecab2c9fc605469e5f181c0" dependencies = [ "bindgen 0.71.1", "cc", @@ -4703,8 +4703,8 @@ dependencies = [ [[package]] name = "mozjs_sys" -version = "0.128.9-2" -source = "git+https://github.com/servo/mozjs#728acdf3d4ce0604e9f75dd1d539dc6f291ccec7" +version = "0.128.9-3" +source = "git+https://github.com/redfire75369/mozjs?branch=build%2Funified#c195b8a1fa4b1b2dcecab2c9fc605469e5f181c0" dependencies = [ "bindgen 0.71.1", "cc", diff --git a/Cargo.toml b/Cargo.toml index 0fc9d90bf14..61d360538a5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -210,6 +210,10 @@ debug = true lto = "thin" codegen-units = 1 +[patch."https://github.com/servo/mozjs"] +mozjs = { git = "https://github.com/redfire75369/mozjs", branch = "build/unified" } +mozjs_sys = { git = "https://github.com/redfire75369/mozjs", branch = "build/unified" } + [patch.crates-io] # If you need to temporarily test Servo with a local fork of some upstream # crate, add that here. Use the form: