Bug 1423236 - Use patch instead of replace to eliminate redundant vendored copy of libudev-sys. r?ttaubert
MozReview-Commit-ID: 529N231rvgY
--- 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" }