summaryrefslogtreecommitdiff
path: root/build_extra/flatbuffers/rust/rust_flatbuffer.gni
diff options
context:
space:
mode:
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" ]
- }
}