Skip to content

Commit

Permalink
Added binary_dependency example
Browse files Browse the repository at this point in the history
  • Loading branch information
UebelAndre committed Oct 13, 2020
1 parent 2d190e1 commit d96e3ba
Show file tree
Hide file tree
Showing 7 changed files with 1,298 additions and 0 deletions.
14 changes: 14 additions & 0 deletions smoke_test/remote/binary_dependencies/BUILD.bazel
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",
],
)
210 changes: 210 additions & 0 deletions smoke_test/remote/binary_dependencies/Cargo.lock

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

30 changes: 30 additions & 0 deletions smoke_test/remote/binary_dependencies/Cargo.toml
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\"]"
3 changes: 3 additions & 0 deletions smoke_test/remote/binary_dependencies/README.md
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`
Loading

0 comments on commit d96e3ba

Please sign in to comment.