-
Notifications
You must be signed in to change notification settings - Fork 432
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Update
cargo_build_script
to work without runfiles support."
This reverts commit 77a9de9.
- Loading branch information
1 parent
77a9de9
commit aa88b9e
Showing
12 changed files
with
133 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,7 @@ | ||
load("@bazel_skylib//:bzl_library.bzl", "bzl_library") | ||
load(":runfiles_enabled.bzl", "runfiles_enabled_build_setting") | ||
|
||
bzl_library( | ||
name = "bzl_lib", | ||
srcs = glob(["**/*.bzl"]), | ||
visibility = ["//:__subpackages__"], | ||
) | ||
|
||
runfiles_enabled_build_setting( | ||
name = "runfiles_enabled", | ||
visibility = ["//visibility:public"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# A config file containing Bazel settings | ||
|
||
# Required on windows | ||
common --enable_platform_specific_config | ||
startup --windows_enable_symlinks | ||
build:windows --enable_runfiles | ||
|
||
# Enable rustfmt | ||
build:strict --aspects=@rules_rust//rust:defs.bzl%rustfmt_aspect | ||
build:strict --output_groups=+rustfmt_checks | ||
|
||
# Enable clippy | ||
build:strict --aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect | ||
build:strict --output_groups=+clippy_checks | ||
|
||
# TODO: migrate all dependencies from WORKSPACE to MODULE.bazel | ||
# https://github.com/bazelbuild/rules_rust/issues/2181 | ||
common --noenable_bzlmod | ||
|
||
# This isn't currently the defaut in Bazel, but we enable it to test we'll be ready if/when it flips. | ||
build --incompatible_disallow_empty_glob | ||
|
||
# This import should always be last to allow users to override | ||
# settings for local development. | ||
try-import %workspace%/user.bazelrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# A config file containing Bazel settings | ||
|
||
# Required on windows | ||
common --enable_platform_specific_config | ||
startup --windows_enable_symlinks | ||
build:windows --enable_runfiles | ||
|
||
# Enable rustfmt | ||
build:strict --aspects=@rules_rust//rust:defs.bzl%rustfmt_aspect | ||
build:strict --output_groups=+rustfmt_checks | ||
|
||
# Enable clippy | ||
build:strict --aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect | ||
build:strict --output_groups=+clippy_checks | ||
|
||
# TODO: migrate all dependencies from WORKSPACE to MODULE.bazel | ||
# https://github.com/bazelbuild/rules_rust/issues/2181 | ||
common --noenable_bzlmod | ||
|
||
# This isn't currently the defaut in Bazel, but we enable it to test we'll be ready if/when it flips. | ||
build --incompatible_disallow_empty_glob | ||
|
||
# This import should always be last to allow users to override | ||
# settings for local development. | ||
try-import %workspace%/user.bazelrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# A config file containing Bazel settings | ||
|
||
# Required on windows | ||
common --enable_platform_specific_config | ||
startup --windows_enable_symlinks | ||
build:windows --enable_runfiles | ||
|
||
# Enable rustfmt | ||
build:strict --aspects=@rules_rust//rust:defs.bzl%rustfmt_aspect | ||
build:strict --output_groups=+rustfmt_checks | ||
|
||
# Enable clippy | ||
build:strict --aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect | ||
build:strict --output_groups=+clippy_checks | ||
|
||
# TODO: migrate all dependencies from WORKSPACE to MODULE.bazel | ||
# https://github.com/bazelbuild/rules_rust/issues/2181 | ||
common --noenable_bzlmod | ||
|
||
# This isn't currently the defaut in Bazel, but we enable it to test we'll be ready if/when it flips. | ||
build --incompatible_disallow_empty_glob | ||
|
||
# This import should always be last to allow users to override | ||
# settings for local development. | ||
try-import %workspace%/user.bazelrc |
Oops, something went wrong.