Skip to content

Commit

Permalink
Apply buildifier to rules_rust files (#106)
Browse files Browse the repository at this point in the history
* Apply BUILDIFIER to bzl files

* Fix up some other files
  • Loading branch information
acmcarther authored Jul 18, 2018
1 parent 4f57c86 commit 60e2229
Show file tree
Hide file tree
Showing 5 changed files with 752 additions and 687 deletions.
11 changes: 8 additions & 3 deletions WORKSPACE
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
workspace(name = "io_bazel_rules_rust")
load("@bazel_tools//tools/build_defs/repo:git.bzl",
"git_repository", "new_git_repository")

load(
"@bazel_tools//tools/build_defs/repo:git.bzl",
"git_repository",
"new_git_repository",
)

local_repository(
name = "examples",
Expand All @@ -14,13 +18,14 @@ local_repository(

# TODO: Move this to examples/WORKSPACE when recursive repositories are enabled.
load("//rust:repositories.bzl", "rust_repositories")

rust_repositories()

new_git_repository(
name = "libc",
build_file = "//:libc.BUILD",
remote = "https://github.com/rust-lang/libc",
tag = "0.2.20",
build_file = "//:libc.BUILD",
)

# Used for documenting Rust rules.
Expand Down
4 changes: 2 additions & 2 deletions examples/ffi/rust_calling_c/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ rust_library(
],
deps = [
"//ffi/rust_calling_c/c:native_matrix",
"@libc//:libc",
"@libc",
],
)

Expand All @@ -31,7 +31,7 @@ rust_library(
],
deps = [
"//ffi/rust_calling_c/c:native_matrix_so",
"@libc//:libc",
"@libc",
],
)

Expand Down
Loading

0 comments on commit 60e2229

Please sign in to comment.