Skip to content

Commit

Permalink
rust: regenerate build with cargo-raze 0.7.0 (#4292)
Browse files Browse the repository at this point in the history
Summary:
Version 0.7.0 of `cargo-raze` was just released. Some visible changes:

  - can now set `[package.metadata.raze]` instead of `[raze]` to avoid a
    Cargo warning: <google/cargo-raze#274>
  - build files have been renamed and restructured to be more compliant
    with Buildifier: <google/cargo-raze#260>

If you have an old version installed, run `cargo install cargo-raze` to
update to the most recent version.

Changes to `third_party/rust/` generated with:

```
(rm -rf third_party/rust/ && cd tensorboard/data/server && cargo raze)
```

The changes to `Cargo.toml` and `third_party/rust/` are independent.

Test Plan:
Run `(cd tensorboard/data/server && cargo test)` and note that the tests
run without an “unused manifest key: raze” warning. Note further that
everything still builds with Bazel.

wchargin-branch: rust-regen-raze-0.7.0
  • Loading branch information
wchargin committed Nov 10, 2020
1 parent 8bdcdee commit 2d951aa
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 38 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
strategy:
matrix:
rust_version: ['1.47.0']
cargo_raze_version: ['0.6.1']
cargo_raze_version: ['0.7.0']
steps:
- uses: actions/checkout@v1
- name: 'Cache Cargo home directory'
Expand Down
4 changes: 2 additions & 2 deletions tensorboard/data/server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ path = "main.rs"
name = "rustboard_core"
path = "lib.rs"

[raze]
[package.metadata.raze]
workspace_path = "//third_party/rust"
genmode = "Remote"

[raze.crates.crc.'1.8.1']
[package.metadata.raze.crates.crc.'1.8.1']
gen_buildrs = true
2 changes: 1 addition & 1 deletion third_party/rust/BUILD.bazel

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions third_party/rust/crates.bzl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2d951aa

Please sign in to comment.