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
--- 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