Skip to content

Commit

Permalink
Add atty crate
Browse files Browse the repository at this point in the history
  • Loading branch information
jez committed May 13, 2020
1 parent 6babebb commit cd9f59a
Show file tree
Hide file tree
Showing 9 changed files with 197 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ path = "src/main.rs"
[dependencies]
ansi_term = "0.12"
lscolors = "0.7"
atty = "0.2"

[raze]
# The WORKSPACE relative path to the Cargo.toml working directory.
Expand Down
1 change: 1 addition & 0 deletions src/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ rust_binary(
deps = [
"//third_party/cargo:ansi_term",
"//third_party/cargo:lscolors",
"//third_party/cargo:atty",
],
visibility = ["//visibility:public"],
)
4 changes: 4 additions & 0 deletions third_party/cargo/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ alias(
name = "ansi_term",
actual = "@raze__ansi_term__0_12_1//:ansi_term",
)
alias(
name = "atty",
actual = "@raze__atty__0_2_14//:atty",
)
alias(
name = "lscolors",
actual = "@raze__lscolors__0_7_0//:lscolors",
Expand Down
29 changes: 29 additions & 0 deletions third_party/cargo/crates.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,35 @@ def raze_fetch_remote_crates():
build_file = Label("//third_party/cargo/remote:ansi_term-0.12.1.BUILD"),
)

_new_http_archive(
name = "raze__atty__0_2_14",
url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/atty/atty-0.2.14.crate",
type = "tar.gz",
strip_prefix = "atty-0.2.14",
sha256 = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8",

build_file = Label("//third_party/cargo/remote:atty-0.2.14.BUILD"),
)

_new_http_archive(
name = "raze__hermit_abi__0_1_12",
url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/hermit-abi/hermit-abi-0.1.12.crate",
type = "tar.gz",
strip_prefix = "hermit-abi-0.1.12",

build_file = Label("//third_party/cargo/remote:hermit-abi-0.1.12.BUILD"),
)

_new_http_archive(
name = "raze__libc__0_2_70",
url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/libc/libc-0.2.70.crate",
type = "tar.gz",
strip_prefix = "libc-0.2.70",
sha256 = "3baa92041a6fec78c687fa0cc2b3fae8884f743d672cf551bed1d6dac6988d0f",

build_file = Label("//third_party/cargo/remote:libc-0.2.70.BUILD"),
)

_new_http_archive(
name = "raze__lscolors__0_7_0",
url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/lscolors/lscolors-0.7.0.crate",
Expand Down
44 changes: 44 additions & 0 deletions third_party/cargo/remote/atty-0.2.14.BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
"""
cargo-raze crate build file.

DO NOT EDIT! Replaced on runs of cargo-raze
"""
package(default_visibility = [
# Public for visibility by "@raze__crate__version//" targets.
#
# Prefer access through "//third_party/cargo", which limits external
# visibility to explicit Cargo.toml dependencies.
"//visibility:public",
])

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

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


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

rust_library(
name = "atty",
crate_root = "src/lib.rs",
crate_type = "lib",
edition = "2015",
srcs = glob(["**/*.rs"]),
deps = [
"@raze__libc__0_2_70//:libc",
],
rustc_flags = [
"--cap-lints=allow",
],
version = "0.2.14",
crate_features = [
],
)

44 changes: 44 additions & 0 deletions third_party/cargo/remote/hermit-abi-0.1.12.BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
"""
cargo-raze crate build file.

DO NOT EDIT! Replaced on runs of cargo-raze
"""
package(default_visibility = [
# Public for visibility by "@raze__crate__version//" targets.
#
# Prefer access through "//third_party/cargo", which limits external
# visibility to explicit Cargo.toml dependencies.
"//visibility:public",
])

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

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



rust_library(
name = "hermit_abi",
crate_root = "src/lib.rs",
crate_type = "lib",
edition = "2015",
srcs = glob(["**/*.rs"]),
deps = [
"@raze__libc__0_2_70//:libc",
],
rustc_flags = [
"--cap-lints=allow",
],
version = "0.1.12",
crate_features = [
"default",
],
)

44 changes: 44 additions & 0 deletions third_party/cargo/remote/libc-0.2.70.BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
"""
cargo-raze crate build file.

DO NOT EDIT! Replaced on runs of cargo-raze
"""
package(default_visibility = [
# Public for visibility by "@raze__crate__version//" targets.
#
# Prefer access through "//third_party/cargo", which limits external
# visibility to explicit Cargo.toml dependencies.
"//visibility:public",
])

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

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


# Unsupported target "build-script-build" with type "custom-build" omitted
# Unsupported target "const_fn" with type "test" omitted

rust_library(
name = "libc",
crate_root = "src/lib.rs",
crate_type = "lib",
edition = "2015",
srcs = glob(["**/*.rs"]),
deps = [
],
rustc_flags = [
"--cap-lints=allow",
],
version = "0.2.70",
crate_features = [
],
)

3 changes: 3 additions & 0 deletions third_party/cargo/remote/winapi-0.3.8.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ rust_library(
"errhandlingapi",
"fileapi",
"handleapi",
"minwinbase",
"minwindef",
"processenv",
"winbase",
],
)

0 comments on commit cd9f59a

Please sign in to comment.