bazel run
and cargo run
are incompatible
#1
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
rules_rust
appears to be linking all files dynamically, but that isn't compatible with themod
keyword that's used in cargo projects.Before this Change:
cargo run
works,bazel run
does notAfter this Change:
bazel run
works,cargo run
does not$ bazel run //src INFO: Analyzed target //src:src (0 packages loaded, 0 targets configured). INFO: Found 1 target... Target //src:src up-to-date: bazel-bin/src/src INFO: Elapsed time: 0.243s, Critical Path: 0.00s INFO: 1 process: 1 internal. INFO: Build completed successfully, 1 total action INFO: Running command line: bazel-bin/src/src Listening on http://127.0.0.1:3030