Skip to content

Commit

Permalink
Update complex_sys example cargo-raze outputs (#549)
Browse files Browse the repository at this point in the history
Added a lockfile and updated the Cargo.toml with cargo-raze 0.8 stanzas.

Then, re-generated build files with raze `0.8.0`, using `cargo raze` in
the example directory.

Finally, a couple of attributes needed to be set manually because
cargo-raze doesn't support them yet. One can grep for "MODIFIED
MANUALLY" in the generated BUILD files.
  • Loading branch information
sitaktif authored Jan 12, 2021
1 parent df18ddb commit 570b4a1
Show file tree
Hide file tree
Showing 30 changed files with 803 additions and 655 deletions.
223 changes: 223 additions & 0 deletions examples/complex_sys/Cargo.lock

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

9 changes: 6 additions & 3 deletions examples/complex_sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,18 @@ path = "src/main.rs"

[dependencies]
git2 = "=0.13.12"
openssl = "=0.10.32"
openssl-sys = "=0.9.60"

# WARNING: Subsequent runs of cargo-raze on this manifest will break examples
[raze]
[package.metadata.raze]
workspace_path = "//complex_sys/raze"
genmode = "Remote"
gen_workspace_prefix = "rules_rust_examples_complex_sys"
rust_rules_workspace_name = "io_bazel_rules_rust"
package_aliases_dir = "raze"
default_gen_buildrs = true

[raze.crates.openssl-sys.'0.9.58']
[package.metadata.raze.crates.openssl-sys.'0.9.60']
additional_deps = [
"@openssl//:openssl",
]
2 changes: 1 addition & 1 deletion examples/complex_sys/raze/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
@generated
cargo-raze workspace build file.
cargo-raze generated Bazel file.
DO NOT EDIT! Replaced on runs of cargo-raze
"""
Expand Down
Loading

0 comments on commit 570b4a1

Please sign in to comment.