You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The bazel meta build system auto generates build files for crate dependencies of a project using the rules_rust bazel package https://bazelbuild.github.io/rules_rust.
A feature of bazel is that its glob function will ignore subdirectories with BUILD or BUILD.bazel files in them. When bazel autogenerates the BUILD files for crate dependencies the method it uses to collect files is glob. For example here is the cargo_build_script that is autogenerated for protobuf-src as a dependency:
The data portion globs all files in the directory - this should include the protobuf c project directory. The included protobuf directory has a BUILD.bazel file as do some of its subdirectories.
If the included protobuf dir and all nested dirs simple didn't have BUILD.bazel files it would compile cleanly as a dependency in a rust project compiled with rules_rust.
The text was updated successfully, but these errors were encountered:
The bazel meta build system auto generates build files for crate dependencies of a project using the
rules_rust
bazel package https://bazelbuild.github.io/rules_rust.A feature of bazel is that its glob function will ignore subdirectories with BUILD or BUILD.bazel files in them. When bazel autogenerates the BUILD files for crate dependencies the method it uses to collect files is glob. For example here is the
cargo_build_script
that is autogenerated forprotobuf-src
as a dependency:The data portion globs all files in the directory - this should include the
protobuf
c project directory. The includedprotobuf
directory has a BUILD.bazel file as do some of its subdirectories.If the included
protobuf
dir and all nested dirs simple didn't have BUILD.bazel files it would compile cleanly as a dependency in a rust project compiled withrules_rust
.The text was updated successfully, but these errors were encountered: