Skip to content

Commit

Permalink
Add cargo-raze build files for grpc-rust crate
Browse files Browse the repository at this point in the history
This is a preliminary work for Rust support. This the result of running
cargo raze on the grpc-rust crate at the 0.4.0 version with protobuf crates
removed (since we import them directly).
  • Loading branch information
damienmg committed Jun 1, 2018
1 parent 2e35aa9 commit a2c0e84
Show file tree
Hide file tree
Showing 109 changed files with 5,231 additions and 0 deletions.
886 changes: 886 additions & 0 deletions rust/crates.bzl

Large diffs are not rendered by default.

Empty file added rust/crates/BUILD
Empty file.
58 changes: 58 additions & 0 deletions rust/crates/aho-corasick-0.6.4.BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
"""
cargo-raze crate build file.

DO NOT EDIT! Replaced on runs of cargo-raze
"""
package(default_visibility = ["//visibility:public"])

licenses([
"notice", # "MIT"
"unencumbered", # "Unlicense"
])

load(
"@io_bazel_rules_rust//rust:rust.bzl",
"rust_library",
"rust_binary",
"rust_test",
"rust_bench_test",
)

rust_binary(
# Prefix bin name to disambiguate from (probable) collision with lib name
# N.B.: The exact form of this is subject to change.
name = "cargo_bin_aho_corasick_dot",
crate_root = "src/main.rs",
srcs = glob(["**/*.rs"]),
deps = [
# Binaries get an implicit dependency on their lib
":aho_corasick",
"@raze__memchr__2_0_1//:memchr",
],
rustc_flags = [
"--cap-lints allow",
"--target=x86_64-unknown-linux-gnu",
],
crate_features = [
],
)


rust_library(
name = "aho_corasick",
crate_root = "src/lib.rs",
crate_type = "lib",
srcs = glob(["**/*.rs"]),
deps = [
"@raze__memchr__2_0_1//:memchr",
],
rustc_flags = [
"--cap-lints allow",
"--target=x86_64-unknown-linux-gnu",
],
crate_features = [
],
)

# Unsupported target "bench" with type "bench" omitted
# Unsupported target "dict-search" with type "example" omitted
36 changes: 36 additions & 0 deletions rust/crates/ansi_term-0.11.0.BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
"""
cargo-raze crate build file.

DO NOT EDIT! Replaced on runs of cargo-raze
"""
package(default_visibility = ["//visibility:public"])

licenses([
"notice", # "MIT"
])

load(
"@io_bazel_rules_rust//rust:rust.bzl",
"rust_library",
"rust_binary",
"rust_test",
"rust_bench_test",
)


rust_library(
name = "ansi_term",
crate_root = "src/lib.rs",
crate_type = "lib",
srcs = glob(["**/*.rs"]),
deps = [
],
rustc_flags = [
"--cap-lints allow",
"--target=x86_64-unknown-linux-gnu",
],
crate_features = [
],
)

# Unsupported target "colours" with type "example" omitted
40 changes: 40 additions & 0 deletions rust/crates/arrayvec-0.4.7.BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
"""
cargo-raze crate build file.

DO NOT EDIT! Replaced on runs of cargo-raze
"""
package(default_visibility = ["//visibility:public"])

licenses([
"notice", # "MIT,Apache-2.0"
])

load(
"@io_bazel_rules_rust//rust:rust.bzl",
"rust_library",
"rust_binary",
"rust_test",
"rust_bench_test",
)

# Unsupported target "arraystring" with type "bench" omitted

rust_library(
name = "arrayvec",
crate_root = "src/lib.rs",
crate_type = "lib",
srcs = glob(["**/*.rs"]),
deps = [
"@raze__nodrop__0_1_12//:nodrop",
],
rustc_flags = [
"--cap-lints allow",
"--target=x86_64-unknown-linux-gnu",
],
crate_features = [
],
)

# Unsupported target "extend" with type "bench" omitted
# Unsupported target "serde" with type "test" omitted
# Unsupported target "tests" with type "test" omitted
37 changes: 37 additions & 0 deletions rust/crates/atty-0.2.10.BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
"""
cargo-raze crate build file.

DO NOT EDIT! Replaced on runs of cargo-raze
"""
package(default_visibility = ["//visibility:public"])

licenses([
"notice", # "MIT"
])

load(
"@io_bazel_rules_rust//rust:rust.bzl",
"rust_library",
"rust_binary",
"rust_test",
"rust_bench_test",
)

# Unsupported target "atty" with type "example" omitted

rust_library(
name = "atty",
crate_root = "src/lib.rs",
crate_type = "lib",
srcs = glob(["**/*.rs"]),
deps = [
"@raze__libc__0_2_41//:libc",
],
rustc_flags = [
"--cap-lints allow",
"--target=x86_64-unknown-linux-gnu",
],
crate_features = [
],
)

42 changes: 42 additions & 0 deletions rust/crates/base64-0.9.1.BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
"""
cargo-raze crate build file.

DO NOT EDIT! Replaced on runs of cargo-raze
"""
package(default_visibility = ["//visibility:public"])

licenses([
"notice", # "MIT,Apache-2.0"
])

load(
"@io_bazel_rules_rust//rust:rust.bzl",
"rust_bench_test",
"rust_binary",
"rust_library",
"rust_test",
)

rust_library(
name = "base64",
crate_root = "src/lib.rs",
crate_type = "lib",
srcs = glob(["**/*.rs"]),
deps = [
"@raze__byteorder__1_2_3//:byteorder",
"@raze__safemem__0_2_0//:safemem",
],
rustc_flags = [
"--cap-lints allow",
"--target=x86_64-unknown-linux-gnu",
],
crate_features = [
],
)

# Unsupported target "benchmarks" with type "bench" omitted
# Unsupported target "decode" with type "test" omitted
# Unsupported target "encode" with type "test" omitted
# Unsupported target "helpers" with type "test" omitted
# Unsupported target "make_tables" with type "example" omitted
# Unsupported target "tests" with type "test" omitted
41 changes: 41 additions & 0 deletions rust/crates/bitflags-0.9.1.BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
"""
cargo-raze crate build file.

DO NOT EDIT! Replaced on runs of cargo-raze
"""
package(default_visibility = ["//visibility:public"])

licenses([
"notice", # "MIT,Apache-2.0"
])

load(
"@io_bazel_rules_rust//rust:rust.bzl",
"rust_library",
"rust_binary",
"rust_test",
"rust_bench_test",
)


rust_library(
name = "bitflags",
crate_root = "src/lib.rs",
crate_type = "lib",
srcs = glob(["**/*.rs"]),
deps = [
],
rustc_flags = [
"--cap-lints allow",
"--target=x86_64-unknown-linux-gnu",
],
crate_features = [
"default",
"example_generated",
],
)

# Unsupported target "conflicting_trait_impls" with type "test" omitted
# Unsupported target "external" with type "test" omitted
# Unsupported target "external_no_std" with type "test" omitted
# Unsupported target "i128_bitflags" with type "test" omitted
36 changes: 36 additions & 0 deletions rust/crates/bitflags-1.0.3.BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
"""
cargo-raze crate build file.

DO NOT EDIT! Replaced on runs of cargo-raze
"""
package(default_visibility = ["//visibility:public"])

licenses([
"notice", # "MIT,Apache-2.0"
])

load(
"@io_bazel_rules_rust//rust:rust.bzl",
"rust_library",
"rust_binary",
"rust_test",
"rust_bench_test",
)


rust_library(
name = "bitflags",
crate_root = "src/lib.rs",
crate_type = "lib",
srcs = glob(["**/*.rs"]),
deps = [
],
rustc_flags = [
"--cap-lints allow",
"--target=x86_64-unknown-linux-gnu",
],
crate_features = [
"default",
],
)

39 changes: 39 additions & 0 deletions rust/crates/byteorder-1.2.3.BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
"""
cargo-raze crate build file.

DO NOT EDIT! Replaced on runs of cargo-raze
"""
package(default_visibility = ["//visibility:public"])

licenses([
"notice", # "MIT"
"unencumbered", # "Unlicense"
])

load(
"@io_bazel_rules_rust//rust:rust.bzl",
"rust_library",
"rust_binary",
"rust_test",
"rust_bench_test",
)

# Unsupported target "bench" with type "bench" omitted

rust_library(
name = "byteorder",
crate_root = "src/lib.rs",
crate_type = "lib",
srcs = glob(["**/*.rs"]),
deps = [
],
rustc_flags = [
"--cap-lints allow",
"--target=x86_64-unknown-linux-gnu",
],
crate_features = [
"default",
"std",
],
)

47 changes: 47 additions & 0 deletions rust/crates/bytes-0.4.8.BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
"""
cargo-raze crate build file.

DO NOT EDIT! Replaced on runs of cargo-raze
"""
package(default_visibility = ["//visibility:public"])

licenses([
"notice", # "MIT,Apache-2.0"
])

load(
"@io_bazel_rules_rust//rust:rust.bzl",
"rust_library",
"rust_binary",
"rust_test",
"rust_bench_test",
)

# Unsupported target "bytes" with type "bench" omitted

rust_library(
name = "bytes",
crate_root = "src/lib.rs",
crate_type = "lib",
srcs = glob(["**/*.rs"]),
deps = [
"@raze__byteorder__1_2_3//:byteorder",
"@raze__iovec__0_1_2//:iovec",
],
rustc_flags = [
"--cap-lints allow",
"--target=x86_64-unknown-linux-gnu",
],
crate_features = [
],
)

# Unsupported target "test_buf" with type "test" omitted
# Unsupported target "test_buf_mut" with type "test" omitted
# Unsupported target "test_bytes" with type "test" omitted
# Unsupported target "test_chain" with type "test" omitted
# Unsupported target "test_debug" with type "test" omitted
# Unsupported target "test_from_buf" with type "test" omitted
# Unsupported target "test_iter" with type "test" omitted
# Unsupported target "test_serde" with type "test" omitted
# Unsupported target "test_take" with type "test" omitted
Loading

0 comments on commit a2c0e84

Please sign in to comment.