-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Binary dependencies smoketest (#240)
* Added binary_dependency example * Updated examples
- Loading branch information
1 parent
aa4ec3b
commit 05a45b9
Showing
97 changed files
with
9,071 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
load("@io_bazel_rules_rust//rust:rust.bzl", "rust_binary") | ||
|
||
package(default_visibility = ["//visibility:public"]) | ||
|
||
rust_binary( | ||
name = "binary_dependencies_bin", | ||
srcs = ["src/main.rs"], | ||
data = [ | ||
"//remote/binary_dependencies/cargo:cargo_bin_texture_synthesis", | ||
], | ||
deps = [ | ||
"//remote/binary_dependencies/cargo:ferris_says", | ||
], | ||
) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[package] | ||
name = "binary_dependencies" | ||
version = "0.1.0" | ||
authors = ["UebelAndre <[email protected]>"] | ||
|
||
[[bin]] | ||
name = "binary_dependencies" | ||
path = "src/main.rs" | ||
|
||
[dependencies] | ||
ferris-says = "0.2.0" | ||
|
||
[raze] | ||
workspace_path = "//remote/binary_dependencies/cargo" | ||
gen_workspace_prefix = "remote_binary_dependencies" | ||
genmode = "Remote" | ||
incompatible_relative_workspace_path = true | ||
default_gen_buildrs = true | ||
|
||
[raze.binary_deps] | ||
texture-synthesis-cli = "0.8.0" | ||
|
||
[raze.crates.texture-synthesis-cli.'0.8.0'] | ||
extra_aliased_targets = ["cargo_bin_texture_synthesis"] | ||
|
||
[raze.crates.crossbeam-utils.'0.7.2'] | ||
gen_buildrs = false | ||
|
||
[raze.crates.image.'0.23.0'] | ||
data_attr = "[\"README.md\"]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# binary_dependency | ||
|
||
This demonstrates a binary dependency being made available as a `rust_binary` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
""" | ||
@generated | ||
cargo-raze workspace build file. | ||
DO NOT EDIT! Replaced on runs of cargo-raze | ||
""" | ||
|
||
package(default_visibility = ["//visibility:public"]) | ||
|
||
licenses([ | ||
"notice", # See individual crates for specific licenses | ||
]) | ||
|
||
# Aliased targets | ||
alias( | ||
name = "ferris_says", | ||
actual = "@remote_binary_dependencies__ferris_says__0_2_0//:ferris_says", | ||
tags = [ | ||
"cargo-raze", | ||
"manual", | ||
], | ||
) | ||
|
||
alias( | ||
name = "atty", | ||
actual = "@remote_binary_dependencies__atty__0_2_14//:atty", | ||
tags = [ | ||
"cargo-raze", | ||
"manual", | ||
], | ||
) | ||
|
||
alias( | ||
name = "indicatif", | ||
actual = "@remote_binary_dependencies__indicatif__0_14_0//:indicatif", | ||
tags = [ | ||
"cargo-raze", | ||
"manual", | ||
], | ||
) | ||
|
||
alias( | ||
name = "structopt", | ||
actual = "@remote_binary_dependencies__structopt__0_3_9//:structopt", | ||
tags = [ | ||
"cargo-raze", | ||
"manual", | ||
], | ||
) | ||
|
||
alias( | ||
name = "texture_synthesis", | ||
actual = "@remote_binary_dependencies__texture_synthesis__0_8_0//:texture_synthesis", | ||
tags = [ | ||
"cargo-raze", | ||
"manual", | ||
], | ||
) | ||
|
||
alias( | ||
# Extra aliased target, from raze configuration | ||
# N.B.: The exact form of this is subject to change. | ||
name = "cargo_bin_texture_synthesis", | ||
actual = "@remote_binary_dependencies__texture_synthesis_cli__0_8_0//:cargo_bin_texture_synthesis", | ||
tags = [ | ||
"cargo-raze", | ||
"manual", | ||
], | ||
) |
Oops, something went wrong.