summaryrefslogtreecommitdiff
path: root/build_extra/flatbuffers/rust/rust_flatbuffer.gni
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-10-31 00:32:42 -0700
committerGitHub <noreply@github.com>2018-10-31 00:32:42 -0700
commit7c82667f75fdfe56ca66ccc0dbe2c92a989ba858 (patch)
tree0d75ddd4f73d046727bdd0369515b09532647c16 /build_extra/flatbuffers/rust/rust_flatbuffer.gni
parent2422e526257d971ba382bb9195e0ee527b918672 (diff)
Upgrade Flatbuffers. (#1127)
Use msg_generated.rs as mod instead of crate.
Diffstat (limited to 'build_extra/flatbuffers/rust/rust_flatbuffer.gni')
-rw-r--r--build_extra/flatbuffers/rust/rust_flatbuffer.gni13
1 files changed, 1 insertions, 12 deletions
diff --git a/build_extra/flatbuffers/rust/rust_flatbuffer.gni b/build_extra/flatbuffers/rust/rust_flatbuffer.gni
index 4255b21ec..3d01562be 100644
--- a/build_extra/flatbuffers/rust/rust_flatbuffer.gni
+++ b/build_extra/flatbuffers/rust/rust_flatbuffer.gni
@@ -5,9 +5,7 @@ import("//build_extra/rust/rust.gni")
import("//build_extra/flatbuffers/flatbuffer.gni")
template("rust_flatbuffer") {
- action_name = "${target_name}_gen"
- source_set_name = target_name
- compiled_action_foreach(action_name) {
+ compiled_action_foreach(target_name) {
tool = "$flatbuffers_build_location:flatc"
sources = invoker.sources
@@ -32,13 +30,4 @@ template("rust_flatbuffer") {
deps += invoker.deps
}
}
-
- rust_crate(source_set_name) {
- sources = get_target_outputs(":$action_name")
- source_root = sources[0]
- deps = [
- ":$action_name",
- ]
- extern = [ "//build_extra/flatbuffers/rust:flatbuffers" ]
- }
}