Bug 1302028 - part 3 - add bindgen feature to gecko-side Cargo.toml files for propagation to geckoservo; r?manishearth draft
authorNathan Froyd <froydnj@mozilla.com>
Wed, 14 Dec 2016 06:49:26 -0500
changeset 453506 75c645a2f080d084686fd0e291a323da3726cdc1
parent 453505 1dcdadfc10f3c840f3ca746d69b6ee2cf65db5a9
child 453507 ea0aecb876f9ecf9bf7a9f4d1c3fbe8d62e5e849
push id39696
push userbmo:nfroyd@mozilla.com
push dateFri, 23 Dec 2016 18:35:18 +0000
reviewersmanishearth
bugs1302028
milestone53.0a1
Bug 1302028 - part 3 - add bindgen feature to gecko-side Cargo.toml files for propagation to geckoservo; r?manishearth Everything that transitively depends on geckoservo needs the bindgen feature exposed. MozReview-Commit-ID: 1NyBumh7Xjj
toolkit/library/gtest/rust/Cargo.toml
toolkit/library/rust/Cargo.toml
toolkit/library/rust/shared/Cargo.toml
--- a/toolkit/library/gtest/rust/Cargo.toml
+++ b/toolkit/library/gtest/rust/Cargo.toml
@@ -1,15 +1,18 @@
 [package]
 name = "gkrust-gtest"
 version = "0.1.0"
 authors = ["nobody@mozilla.org"]
 license = "MPL-2.0"
 description = "Testing code for libgkrust"
 
+[features]
+bindgen = ["gkrust-shared/bindgen"]
+
 [dependencies]
 mp4parse-gtest = { path = "../../../../dom/media/gtest" }
 nsstring-gtest = { path = "../../../../xpcom/rust/nsstring/gtest" }
 gkrust-shared = { path = "../../rust/shared" }
 
 [lib]
 path = "lib.rs"
 crate-type = ["staticlib"]
--- a/toolkit/library/rust/Cargo.toml
+++ b/toolkit/library/rust/Cargo.toml
@@ -1,15 +1,18 @@
 [package]
 name = "gkrust"
 version = "0.1.0"
 authors = ["nobody@mozilla.org"]
 license = "MPL-2.0"
 description = "Rust code for libxul"
 
+[features]
+bindgen = ["gkrust-shared/bindgen"]
+
 [dependencies]
 gkrust-shared = { path = "shared" }
 
 [lib]
 path = "lib.rs"
 crate-type = ["staticlib"]
 test = false
 doctest = false
--- a/toolkit/library/rust/shared/Cargo.toml
+++ b/toolkit/library/rust/shared/Cargo.toml
@@ -6,16 +6,19 @@ license = "MPL-2.0"
 description = "Shared Rust code for libxul"
 
 [dependencies]
 geckoservo = { path = "../../../../servo/ports/geckolib" }
 mp4parse_capi = { path = "../../../../media/libstagefright/binding/mp4parse_capi" }
 nsstring = { path = "../../../../xpcom/rust/nsstring" }
 rust_url_capi = { path = "../../../../netwerk/base/rust-url-capi" }
 
+[features]
+bindgen = ["geckoservo/bindgen"]
+
 [lib]
 path = "lib.rs"
 test = false
 doctest = false
 bench = false
 doc = false
 plugin = false
 harness = false