Bug 1423236 - Use patch instead of replace to eliminate redundant vendored copy of libudev-sys. r?ttaubert draft
authorKartikaya Gupta <kgupta@mozilla.com>
Wed, 06 Dec 2017 15:42:25 -0500
changeset 708390 91a2e915a1f78048df63466571eacd5ca33984df
parent 708379 c0c5e19a32b8b1b74b9dc0360800aec01665f9b0
child 708391 94d025671b0d11ab029adf20fbb08f04d81cad46
push id92390
push userkgupta@mozilla.com
push dateWed, 06 Dec 2017 20:58:32 +0000
reviewersttaubert
bugs1423236
milestone59.0a1
Bug 1423236 - Use patch instead of replace to eliminate redundant vendored copy of libudev-sys. r?ttaubert MozReview-Commit-ID: 529N231rvgY
toolkit/library/gtest/rust/Cargo.toml
toolkit/library/rust/Cargo.toml
--- a/toolkit/library/gtest/rust/Cargo.toml
+++ b/toolkit/library/gtest/rust/Cargo.toml
@@ -40,10 +40,10 @@ codegen-units = 4
 panic = "abort"
 
 [profile.release]
 opt-level = 2
 rpath = false
 debug-assertions = false
 panic = "abort"
 
-[replace]
-"libudev-sys:0.1.3" = { path = "../../../../dom/webauthn/libudev-sys" }
+[patch.crates-io]
+libudev-sys = { path = "../../../../dom/webauthn/libudev-sys" }
--- a/toolkit/library/rust/Cargo.toml
+++ b/toolkit/library/rust/Cargo.toml
@@ -41,10 +41,10 @@ codegen-units = 4
 panic = "abort"
 
 [profile.release]
 opt-level = 2
 rpath = false
 debug-assertions = false
 panic = "abort"
 
-[replace]
-"libudev-sys:0.1.3" = { path = "../../../dom/webauthn/libudev-sys" }
+[patch.crates-io]
+libudev-sys = { path = "../../../dom/webauthn/libudev-sys" }