Remove 'rust_staticlib' build template
It's not used for anything, nor are we planning to use it.
@@ -83,10 +83,7 @@ template("run_rustc") {
crate_name_and_version = "$crate_name-$crate_version"
}
- if (crate_type == "staticlib") {
- output_file = "$target_out_dir/$crate_name_and_version.a"
- emit_type = "link"
- } else if (crate_type == "bin") {
+ if (crate_type == "bin") {
output_file = "$target_out_dir/$crate_name_and_version.o"
emit_type = "obj"
} else if (crate_type == "rlib") {
@@ -246,23 +243,6 @@ template("rust_component") {
}
}
-template("rust_staticlib") {
- rust_component(target_name) {
- forward_variables_from(invoker,
- [
- "cfg",
- "crate_name",
- "crate_version",
- "extern",
- "extern_version",
- "features",
- "source_root",
- "testonly",
- ])
- crate_type = "staticlib"
- }
-}
-
template("rust_executable") {
bin_name = target_name + "_bin"
bin_label = ":" + bin_name
