diff options
Diffstat (limited to 'build_extra')
-rw-r--r-- | build_extra/flatbuffers/rust/BUILD.gn | 2 | ||||
-rw-r--r-- | build_extra/rust/BUILD.gn | 16 |
2 files changed, 17 insertions, 1 deletions
diff --git a/build_extra/flatbuffers/rust/BUILD.gn b/build_extra/flatbuffers/rust/BUILD.gn index dd4a5c64c..d983a175d 100644 --- a/build_extra/flatbuffers/rust/BUILD.gn +++ b/build_extra/flatbuffers/rust/BUILD.gn @@ -2,5 +2,5 @@ import("//build_extra/rust/rust.gni") rust_crate("flatbuffers") { source_root = "//third_party/flatbuffers/rust/flatbuffers/src/lib.rs" - args = [ "-Aunused_variables" ] # TODO Remove this. + extern = [ "//build_extra/rust:smallvec" ] } diff --git a/build_extra/rust/BUILD.gn b/build_extra/rust/BUILD.gn index 382f9a90b..f75b96301 100644 --- a/build_extra/rust/BUILD.gn +++ b/build_extra/rust/BUILD.gn @@ -808,3 +808,19 @@ rust_crate("scoped_tls") { ":untrusted", ] } + +rust_crate("smallvec") { + source_root = "$registry_github/smallvec-0.6.5/lib.rs" + extern = [ ":unreachable" ] + features = [ "std" ] +} + +rust_crate("unreachable") { + source_root = "$registry_github/unreachable-1.0.0/src/lib.rs" + extern = [ ":void" ] +} + +rust_crate("void") { + source_root = "$registry_github/void-1.0.2/src/lib.rs" + features = [ "default" ] +} |