Skip to content

Commit

Permalink
Review tweaks
Browse files Browse the repository at this point in the history
* Update to use defs.bzl
* Fix up some tests
* Remove pseudo-attempt at bootstrapping
  • Loading branch information
illicitonion committed Mar 24, 2021
1 parent 09272cc commit 10ac0f8
Show file tree
Hide file tree
Showing 10 changed files with 127 additions and 98 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# buildifier: disable=load
load(
"@rules_rust//rust:rust.bzl",
"@rules_rust//rust:defs.bzl",
"rust_binary",
"rust_library",
"rust_proc_macro",
"rust_test",
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ alias(

{% endif -%}
# buildifier: leave-alone
{%- if target.kind == "proc-macro" %}
rust_proc_macro(
{%- else %}
rust_library(
{%- endif %}
name = "{{ target_name_sanitized }}",
crate_type = "{{ target.kind }}",
deps = [
{%- if crate.build_script_target %}
":{{ crate_name_sanitized }}_build_script",
Expand Down
Loading

0 comments on commit 10ac0f8

Please sign in to comment.