From 11f5bdf5c79a5723ca18bc6a6cdf96f931031b6c Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 3 Feb 2022 15:42:25 +1000 Subject: [PATCH] add id_tree dependency --- Cargo.lock | 16 +++++++ cargo/BUILD.bazel | 9 ++++ cargo/crates.bzl | 20 ++++++++ cargo/licenses.json | 18 ++++++++ cargo/remote/BUILD.id_tree-1.8.0.bazel | 59 ++++++++++++++++++++++++ cargo/remote/BUILD.snowflake-1.3.0.bazel | 55 ++++++++++++++++++++++ pylib/rsbridge/cargo/BUILD.bazel | 9 ++++ rslib/BUILD.bazel | 1 + rslib/Cargo.toml | 1 + rslib/cargo/BUILD.bazel | 9 ++++ rslib/i18n/cargo/BUILD.bazel | 9 ++++ rslib/i18n_helpers/cargo/BUILD.bazel | 9 ++++ rslib/linkchecker/cargo/BUILD.bazel | 9 ++++ 13 files changed, 224 insertions(+) create mode 100644 cargo/remote/BUILD.id_tree-1.8.0.bazel create mode 100644 cargo/remote/BUILD.snowflake-1.3.0.bazel diff --git a/Cargo.lock b/Cargo.lock index 035ccfdec..83fadda30 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -63,6 +63,7 @@ dependencies = [ "futures", "hex", "htmlescape", + "id_tree", "intl-memoizer", "itertools", "lazy_static", @@ -1062,6 +1063,15 @@ dependencies = [ "tokio-native-tls", ] +[[package]] +name = "id_tree" +version = "1.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bcd9db8dd5be8bde5a2624ed4b2dfb74368fe7999eb9c4940fd3ca344b61071a" +dependencies = [ + "snowflake", +] + [[package]] name = "idna" version = "0.2.3" @@ -2541,6 +2551,12 @@ version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f2dd574626839106c320a323308629dcb1acfc96e32a8cba364ddc61ac23ee83" +[[package]] +name = "snowflake" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27207bb65232eda1f588cf46db2fee75c0808d557f6b3cf19a75f5d6d7c94df1" + [[package]] name = "socket2" version = "0.4.2" diff --git a/cargo/BUILD.bazel b/cargo/BUILD.bazel index 82d31b3f0..5b2f76210 100644 --- a/cargo/BUILD.bazel +++ b/cargo/BUILD.bazel @@ -147,6 +147,15 @@ alias( ], ) +alias( + name = "id_tree", + actual = "@raze__id_tree__1_8_0//:id_tree", + tags = [ + "cargo-raze", + "manual", + ], +) + alias( name = "inflections", actual = "@raze__inflections__1_1_1//:inflections", diff --git a/cargo/crates.bzl b/cargo/crates.bzl index 2f16686bd..f253078e7 100644 --- a/cargo/crates.bzl +++ b/cargo/crates.bzl @@ -911,6 +911,16 @@ def raze_fetch_remote_crates(): build_file = Label("//cargo/remote:BUILD.hyper-tls-0.5.0.bazel"), ) + maybe( + http_archive, + name = "raze__id_tree__1_8_0", + url = "https://crates.io/api/v1/crates/id_tree/1.8.0/download", + type = "tar.gz", + sha256 = "bcd9db8dd5be8bde5a2624ed4b2dfb74368fe7999eb9c4940fd3ca344b61071a", + strip_prefix = "id_tree-1.8.0", + build_file = Label("//cargo/remote:BUILD.id_tree-1.8.0.bazel"), + ) + maybe( http_archive, name = "raze__idna__0_2_3", @@ -2291,6 +2301,16 @@ def raze_fetch_remote_crates(): build_file = Label("//cargo/remote:BUILD.smallvec-1.8.0.bazel"), ) + maybe( + http_archive, + name = "raze__snowflake__1_3_0", + url = "https://crates.io/api/v1/crates/snowflake/1.3.0/download", + type = "tar.gz", + sha256 = "27207bb65232eda1f588cf46db2fee75c0808d557f6b3cf19a75f5d6d7c94df1", + strip_prefix = "snowflake-1.3.0", + build_file = Label("//cargo/remote:BUILD.snowflake-1.3.0.bazel"), + ) + maybe( http_archive, name = "raze__socket2__0_4_2", diff --git a/cargo/licenses.json b/cargo/licenses.json index 2bb975424..53de5fb19 100644 --- a/cargo/licenses.json +++ b/cargo/licenses.json @@ -737,6 +737,15 @@ "license_file": null, "description": "Default TLS implementation for use with hyper" }, + { + "name": "id_tree", + "version": "1.8.0", + "authors": "Ian Burns ", + "repository": "https://github.com/iwburns/id-tree", + "license": "MIT", + "license_file": null, + "description": "A library for creating and modifying Tree structures." + }, { "name": "idna", "version": "0.2.3", @@ -1835,6 +1844,15 @@ "license_file": null, "description": "'Small vector' optimization: store up to a small number of items on the stack" }, + { + "name": "snowflake", + "version": "1.3.0", + "authors": "Steven Allen ", + "repository": "https://github.com/Stebalien/snowflake", + "license": "Apache-2.0 OR MIT", + "license_file": null, + "description": "A module for generating guaranteed process unique IDs." + }, { "name": "socket2", "version": "0.4.2", diff --git a/cargo/remote/BUILD.id_tree-1.8.0.bazel b/cargo/remote/BUILD.id_tree-1.8.0.bazel new file mode 100644 index 000000000..5931766b0 --- /dev/null +++ b/cargo/remote/BUILD.id_tree-1.8.0.bazel @@ -0,0 +1,59 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +# Unsupported target "basic" with type "example" omitted + +rust_library( + name = "id_tree", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=id_tree", + "manual", + ], + version = "1.8.0", + # buildifier: leave-alone + deps = [ + "@raze__snowflake__1_3_0//:snowflake", + ], +) + +# Unsupported target "error_tests" with type "test" omitted diff --git a/cargo/remote/BUILD.snowflake-1.3.0.bazel b/cargo/remote/BUILD.snowflake-1.3.0.bazel new file mode 100644 index 000000000..46831c2ab --- /dev/null +++ b/cargo/remote/BUILD.snowflake-1.3.0.bazel @@ -0,0 +1,55 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "snowflake", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=snowflake", + "manual", + ], + version = "1.3.0", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/pylib/rsbridge/cargo/BUILD.bazel b/pylib/rsbridge/cargo/BUILD.bazel index 408302a7a..1d4c107e7 100644 --- a/pylib/rsbridge/cargo/BUILD.bazel +++ b/pylib/rsbridge/cargo/BUILD.bazel @@ -147,6 +147,15 @@ alias( ], ) +alias( + name = "id_tree", + actual = "@raze__id_tree__1_8_0//:id_tree", + tags = [ + "cargo-raze", + "manual", + ], +) + alias( name = "inflections", actual = "@raze__inflections__1_1_1//:inflections", diff --git a/rslib/BUILD.bazel b/rslib/BUILD.bazel index 6c3a8c49f..b5f3b8eda 100644 --- a/rslib/BUILD.bazel +++ b/rslib/BUILD.bazel @@ -82,6 +82,7 @@ rust_library( "//rslib/cargo:futures", "//rslib/cargo:hex", "//rslib/cargo:htmlescape", + "//rslib/cargo:id_tree", "//rslib/cargo:intl_memoizer", "//rslib/cargo:itertools", "//rslib/cargo:lazy_static", diff --git a/rslib/Cargo.toml b/rslib/Cargo.toml index 638712f0d..e3d9393b7 100644 --- a/rslib/Cargo.toml +++ b/rslib/Cargo.toml @@ -96,3 +96,4 @@ strum = { version = "0.23.0", features = ["derive"] } tokio-util = { version = "0.6.8", features = ["io"] } pct-str = { git="https://github.com/timothee-haudebourg/pct-str.git", rev="4adccd8d4a222ab2672350a102f06ae832a0572d" } unic-ucd-category = "0.9.0" +id_tree = "1.8.0" diff --git a/rslib/cargo/BUILD.bazel b/rslib/cargo/BUILD.bazel index 408302a7a..1d4c107e7 100644 --- a/rslib/cargo/BUILD.bazel +++ b/rslib/cargo/BUILD.bazel @@ -147,6 +147,15 @@ alias( ], ) +alias( + name = "id_tree", + actual = "@raze__id_tree__1_8_0//:id_tree", + tags = [ + "cargo-raze", + "manual", + ], +) + alias( name = "inflections", actual = "@raze__inflections__1_1_1//:inflections", diff --git a/rslib/i18n/cargo/BUILD.bazel b/rslib/i18n/cargo/BUILD.bazel index 408302a7a..1d4c107e7 100644 --- a/rslib/i18n/cargo/BUILD.bazel +++ b/rslib/i18n/cargo/BUILD.bazel @@ -147,6 +147,15 @@ alias( ], ) +alias( + name = "id_tree", + actual = "@raze__id_tree__1_8_0//:id_tree", + tags = [ + "cargo-raze", + "manual", + ], +) + alias( name = "inflections", actual = "@raze__inflections__1_1_1//:inflections", diff --git a/rslib/i18n_helpers/cargo/BUILD.bazel b/rslib/i18n_helpers/cargo/BUILD.bazel index 408302a7a..1d4c107e7 100644 --- a/rslib/i18n_helpers/cargo/BUILD.bazel +++ b/rslib/i18n_helpers/cargo/BUILD.bazel @@ -147,6 +147,15 @@ alias( ], ) +alias( + name = "id_tree", + actual = "@raze__id_tree__1_8_0//:id_tree", + tags = [ + "cargo-raze", + "manual", + ], +) + alias( name = "inflections", actual = "@raze__inflections__1_1_1//:inflections", diff --git a/rslib/linkchecker/cargo/BUILD.bazel b/rslib/linkchecker/cargo/BUILD.bazel index 408302a7a..1d4c107e7 100644 --- a/rslib/linkchecker/cargo/BUILD.bazel +++ b/rslib/linkchecker/cargo/BUILD.bazel @@ -147,6 +147,15 @@ alias( ], ) +alias( + name = "id_tree", + actual = "@raze__id_tree__1_8_0//:id_tree", + tags = [ + "cargo-raze", + "manual", + ], +) + alias( name = "inflections", actual = "@raze__inflections__1_1_1//:inflections",