fork/rules_rust
git clone https://git.julia.blue/fork/rules_rust
034f2cc8
main
1load ( "@bazel_skylib//rules:common_settings.bzl" , "bool_flag" , "string_list_flag" ) 2 3package ( default_visibility = [ "//visibility:public" ]) 4 5# A flag for which causes `cargo_build_script` to symlink the execroot of the action to 6# the `CARGO_MANIFEST_DIR` where the scripts are run. 7bool_flag ( 8name = "experimental_symlink_execroot" , 9build_setting_default = False , 10) 11 12# A flag which causes `cargo_build_script` to write an explicit `CARGO_MANFIEST_DIR` 13# directory from an action instead of using runfiles directories which cannot be 14# passed to downstream actions. 15# https://github.com/bazelbuild/bazel/issues/15486 16bool_flag ( 17name = "incompatible_runfiles_cargo_manifest_dir" , 18build_setting_default = True , 19) 20 21# A flag which determines what files are retained in `CARGO_MANIFEST_DIR` directories 22# that are created in `CargoBuildScriptRun` actions. 23string_list_flag ( 24name = "cargo_manifest_dir_filename_suffixes_to_retain" , 25build_setting_default = [ 26".lib" , 27".so" , 28], 29) 30 31# A flag which adds a `streams` output group to `cargo_build_script` targets that contain 32# the raw `stderr` and `stdout` streams from the build script. 33bool_flag ( 34name = "debug_std_streams_output_group" , 35build_setting_default = False , 36)