Updated crate_universe examples (#1170)
diff --git a/examples/crate_universe/WORKSPACE.bazel b/examples/crate_universe/WORKSPACE.bazel
index ae094b5..40b4b08 100644
--- a/examples/crate_universe/WORKSPACE.bazel
+++ b/examples/crate_universe/WORKSPACE.bazel
@@ -29,8 +29,8 @@
name = "cargo_aliases",
annotations = {
"names": [crate.annotation(
- shallow_since = "1631486371 -0600",
- version = "0.11.1-dev",
+ shallow_since = "1646516410 -0700",
+ version = "0.12.1-dev",
)],
},
# `generator` is not necessary in official releases.
@@ -77,9 +77,9 @@
http_archive(
name = "names",
build_file = "//cargo_remote:BUILD.names.bazel",
- sha256 = "9a143ae56c0f9bc375be22a6b25c959ad042e83e7d6be2392074e77ee8257d0e",
- strip_prefix = "names-0.12.0",
- urls = ["https://github.com/fnichol/names/archive/refs/tags/v0.12.0.zip"],
+ sha256 = "eab40caca5805624ba31d028913931c3d054b22daafff6f43e3435cfa9fb761e",
+ strip_prefix = "names-0.13.0",
+ urls = ["https://github.com/fnichol/names/archive/refs/tags/v0.13.0.zip"],
)
crates_repository(
diff --git a/examples/crate_universe/cargo_aliases/Cargo.Bazel.lock b/examples/crate_universe/cargo_aliases/Cargo.Bazel.lock
index b30d091..596b054 100644
--- a/examples/crate_universe/cargo_aliases/Cargo.Bazel.lock
+++ b/examples/crate_universe/cargo_aliases/Cargo.Bazel.lock
@@ -1,5 +1,5 @@
{
- "checksum": "1499ae4a3cc1ab853e55732687cfdb542b67d4c50122588abdf647d599655f26",
+ "checksum": "ba701df4681897610cd747b83f18fcb46468e975284b0ed0b596bcfaefe2a881",
"crates": {
"aho-corasick 0.7.18": {
"name": "aho-corasick",
@@ -82,12 +82,12 @@
"target": "log"
},
{
- "id": "names 0.11.1-dev",
+ "id": "names 0.12.1-dev",
"target": "names",
"alias": "pinned_names"
},
{
- "id": "names 0.12.0",
+ "id": "names 0.13.0",
"target": "names"
},
{
@@ -269,13 +269,13 @@
},
"license": "MIT/Apache-2.0"
},
- "clap 3.0.0-beta.2": {
+ "clap 3.1.6": {
"name": "clap",
- "version": "3.0.0-beta.2",
+ "version": "3.1.6",
"repository": {
"Http": {
- "url": "https://crates.io/api/v1/crates/clap/3.0.0-beta.2/download",
- "sha256": "4bd1061998a501ee7d4b6d449020df3266ca3124b941ec56cf2005c3779ca142"
+ "url": "https://crates.io/api/v1/crates/clap/3.1.6/download",
+ "sha256": "d8c93436c21e4698bacadf42917db28b23017027a4deccb35dbe47a7e7840123"
}
},
"targets": [
@@ -299,7 +299,6 @@
],
"crate_features": [
"atty",
- "cargo",
"clap_derive",
"color",
"default",
@@ -329,7 +328,7 @@
"target": "lazy_static"
},
{
- "id": "os_str_bytes 2.4.0",
+ "id": "os_str_bytes 6.0.0",
"target": "os_str_bytes"
},
{
@@ -341,16 +340,8 @@
"target": "termcolor"
},
{
- "id": "textwrap 0.12.1",
+ "id": "textwrap 0.15.0",
"target": "textwrap"
- },
- {
- "id": "unicode-width 0.1.9",
- "target": "unicode_width"
- },
- {
- "id": "vec_map 0.8.2",
- "target": "vec_map"
}
],
"selects": {}
@@ -365,7 +356,7 @@
],
"selects": {}
},
- "version": "3.0.0-beta.2"
+ "version": "3.1.6"
},
"license": "MIT OR Apache-2.0"
},
@@ -789,6 +780,9 @@
"compile_data_glob": [
"**"
],
+ "crate_features": [
+ "std"
+ ],
"deps": {
"common": [
{
@@ -1088,16 +1082,16 @@
},
"license": "Unlicense/MIT"
},
- "names 0.11.1-dev": {
+ "names 0.12.1-dev": {
"name": "names",
- "version": "0.11.1-dev",
+ "version": "0.12.1-dev",
"repository": {
"Git": {
"remote": "https://github.com/fnichol/names.git",
"commitish": {
- "Rev": "534b1cd239fb57933616f3d25ae258bdf708811d"
+ "Rev": "760516503b89ddc8bc2ab42d579d4566cfb1054f"
},
- "shallow_since": "1631486371 -0600"
+ "shallow_since": "1646516410 -0700"
}
},
"targets": [
@@ -1151,11 +1145,11 @@
"deps": {
"common": [
{
- "id": "clap 3.0.0-beta.2",
+ "id": "clap 3.1.6",
"target": "clap"
},
{
- "id": "names 0.11.1-dev",
+ "id": "names 0.12.1-dev",
"target": "build_script_build"
},
{
@@ -1166,7 +1160,7 @@
"selects": {}
},
"edition": "2018",
- "version": "0.11.1-dev"
+ "version": "0.12.1-dev"
},
"build_script_attrs": {
"data_glob": [
@@ -1175,13 +1169,13 @@
},
"license": "MIT"
},
- "names 0.12.0": {
+ "names 0.13.0": {
"name": "names",
- "version": "0.12.0",
+ "version": "0.13.0",
"repository": {
"Http": {
- "url": "https://crates.io/api/v1/crates/names/0.12.0/download",
- "sha256": "10a8690bf09abf659851e58cd666c3d37ac6af07c2bd7a9e332cfba471715775"
+ "url": "https://crates.io/api/v1/crates/names/0.13.0/download",
+ "sha256": "e7d66043b25d4a6cccb23619d10c19c25304b355a7dccd4a8e11423dd2382146"
}
},
"targets": [
@@ -1235,11 +1229,11 @@
"deps": {
"common": [
{
- "id": "clap 3.0.0-beta.2",
+ "id": "clap 3.1.6",
"target": "clap"
},
{
- "id": "names 0.12.0",
+ "id": "names 0.13.0",
"target": "build_script_build"
},
{
@@ -1250,7 +1244,7 @@
"selects": {}
},
"edition": "2018",
- "version": "0.12.0"
+ "version": "0.13.0"
},
"build_script_attrs": {
"data_glob": [
@@ -1259,13 +1253,13 @@
},
"license": "MIT"
},
- "os_str_bytes 2.4.0": {
+ "os_str_bytes 6.0.0": {
"name": "os_str_bytes",
- "version": "2.4.0",
+ "version": "6.0.0",
"repository": {
"Http": {
- "url": "https://crates.io/api/v1/crates/os_str_bytes/2.4.0/download",
- "sha256": "afb2e1c3ee07430c2cf76151675e583e0f19985fa6efae47d6848a3e2c824f85"
+ "url": "https://crates.io/api/v1/crates/os_str_bytes/6.0.0/download",
+ "sha256": "8e22443d1643a904602595ba1cd8f7d896afe56d26712531c5ff73a15b2fbf64"
}
},
"targets": [
@@ -1288,10 +1282,21 @@
"**"
],
"crate_features": [
- "raw"
+ "default",
+ "memchr",
+ "raw_os_str"
],
+ "deps": {
+ "common": [
+ {
+ "id": "memchr 2.4.1",
+ "target": "memchr"
+ }
+ ],
+ "selects": {}
+ },
"edition": "2018",
- "version": "2.4.0"
+ "version": "6.0.0"
},
"license": "MIT OR Apache-2.0"
},
@@ -2024,13 +2029,13 @@
},
"license": "Unlicense OR MIT"
},
- "textwrap 0.12.1": {
+ "textwrap 0.15.0": {
"name": "textwrap",
- "version": "0.12.1",
+ "version": "0.15.0",
"repository": {
"Http": {
- "url": "https://crates.io/api/v1/crates/textwrap/0.12.1/download",
- "sha256": "203008d98caf094106cfaba70acfed15e18ed3ddb7d94e49baec153a2b462789"
+ "url": "https://crates.io/api/v1/crates/textwrap/0.15.0/download",
+ "sha256": "b1141d4d61095b28419e22cb0bbf02755f5e54e0526f97f1e3d1d160e60885fb"
}
},
"targets": [
@@ -2052,56 +2057,11 @@
"compile_data_glob": [
"**"
],
- "deps": {
- "common": [
- {
- "id": "unicode-width 0.1.9",
- "target": "unicode_width"
- }
- ],
- "selects": {}
- },
"edition": "2018",
- "version": "0.12.1"
+ "version": "0.15.0"
},
"license": "MIT"
},
- "unicode-width 0.1.9": {
- "name": "unicode-width",
- "version": "0.1.9",
- "repository": {
- "Http": {
- "url": "https://crates.io/api/v1/crates/unicode-width/0.1.9/download",
- "sha256": "3ed742d4ea2bd1176e236172c8429aaf54486e7ac098db29ffe6529e0ce50973"
- }
- },
- "targets": [
- {
- "Library": {
- "crate_name": "unicode_width",
- "crate_root": "src/lib.rs",
- "srcs": {
- "include": [
- "**/*.rs"
- ],
- "exclude": []
- }
- }
- }
- ],
- "library_target_name": "unicode_width",
- "common_attrs": {
- "compile_data_glob": [
- "**"
- ],
- "crate_features": [
- "default"
- ],
- "edition": "2015",
- "version": "0.1.9"
- },
- "license": "MIT/Apache-2.0"
- },
"unicode-xid 0.2.2": {
"name": "unicode-xid",
"version": "0.2.2",
@@ -2216,39 +2176,6 @@
},
"license": "Apache-2.0 OR MIT"
},
- "vec_map 0.8.2": {
- "name": "vec_map",
- "version": "0.8.2",
- "repository": {
- "Http": {
- "url": "https://crates.io/api/v1/crates/vec_map/0.8.2/download",
- "sha256": "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191"
- }
- },
- "targets": [
- {
- "Library": {
- "crate_name": "vec_map",
- "crate_root": "src/lib.rs",
- "srcs": {
- "include": [
- "**/*.rs"
- ],
- "exclude": []
- }
- }
- }
- ],
- "library_target_name": "vec_map",
- "common_attrs": {
- "compile_data_glob": [
- "**"
- ],
- "edition": "2015",
- "version": "0.8.2"
- },
- "license": "MIT/Apache-2.0"
- },
"version_check 0.9.4": {
"name": "version_check",
"version": "0.9.4",
@@ -2568,8 +2495,8 @@
}
},
"binary_crates": [
- "names 0.11.1-dev",
- "names 0.12.0"
+ "names 0.12.1-dev",
+ "names 0.13.0"
],
"workspace_members": {
"aliases 0.1.0": "cargo_aliases"
diff --git a/examples/crate_universe/cargo_aliases/Cargo.lock b/examples/crate_universe/cargo_aliases/Cargo.lock
index 0da2b51..439c4d8 100644
--- a/examples/crate_universe/cargo_aliases/Cargo.lock
+++ b/examples/crate_universe/cargo_aliases/Cargo.lock
@@ -18,8 +18,8 @@
"env_logger",
"log 0.3.9",
"log 0.4.14",
- "names 0.11.1-dev",
- "names 0.12.0",
+ "names 0.12.1-dev",
+ "names 0.13.0",
"value-bag",
]
@@ -54,9 +54,9 @@
[[package]]
name = "clap"
-version = "3.0.0-beta.2"
+version = "3.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4bd1061998a501ee7d4b6d449020df3266ca3124b941ec56cf2005c3779ca142"
+checksum = "ced1892c55c910c1219e98d6fc8d71f6bddba7905866ce740066d8bfea859312"
dependencies = [
"atty",
"bitflags",
@@ -67,15 +67,13 @@
"strsim",
"termcolor",
"textwrap",
- "unicode-width",
- "vec_map",
]
[[package]]
name = "clap_derive"
-version = "3.0.14"
+version = "3.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9a1132dc3944b31c20dd8b906b3a9f0a5d0243e092d59171414969657ac6aa85"
+checksum = "da95d038ede1a964ce99f49cbe27a7fb538d1da595e4b4f70b8c8f338d17bf16"
dependencies = [
"heck",
"proc-macro-error",
@@ -109,9 +107,9 @@
[[package]]
name = "getrandom"
-version = "0.2.4"
+version = "0.2.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "418d37c8b1d42553c93648be529cb70f920d3baf8ef469b74b9638df426e0b4c"
+checksum = "d39cd93900197114fa1fcb7ae84ca742095eed9442088988ae74fa744e930e77"
dependencies = [
"cfg-if",
"libc",
@@ -163,9 +161,9 @@
[[package]]
name = "libc"
-version = "0.2.117"
+version = "0.2.119"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e74d72e0f9b65b5b4ca49a346af3976df0f9c61d550727f349ecd559f251a26c"
+checksum = "1bf2e165bb3457c8e098ea76f3e3bc9db55f87aa90d52d0e6be741470916aaa4"
[[package]]
name = "log"
@@ -193,8 +191,8 @@
[[package]]
name = "names"
-version = "0.11.1-dev"
-source = "git+https://github.com/fnichol/names.git?rev=534b1cd239fb57933616f3d25ae258bdf708811d#534b1cd239fb57933616f3d25ae258bdf708811d"
+version = "0.12.1-dev"
+source = "git+https://github.com/fnichol/names.git?rev=760516503b89ddc8bc2ab42d579d4566cfb1054f#760516503b89ddc8bc2ab42d579d4566cfb1054f"
dependencies = [
"clap",
"rand",
@@ -202,9 +200,9 @@
[[package]]
name = "names"
-version = "0.12.0"
+version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "10a8690bf09abf659851e58cd666c3d37ac6af07c2bd7a9e332cfba471715775"
+checksum = "e7d66043b25d4a6cccb23619d10c19c25304b355a7dccd4a8e11423dd2382146"
dependencies = [
"clap",
"rand",
@@ -212,9 +210,12 @@
[[package]]
name = "os_str_bytes"
-version = "2.4.0"
+version = "6.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "afb2e1c3ee07430c2cf76151675e583e0f19985fa6efae47d6848a3e2c824f85"
+checksum = "8e22443d1643a904602595ba1cd8f7d896afe56d26712531c5ff73a15b2fbf64"
+dependencies = [
+ "memchr",
+]
[[package]]
name = "ppv-lite86"
@@ -266,14 +267,13 @@
[[package]]
name = "rand"
-version = "0.8.4"
+version = "0.8.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2e7573632e6454cf6b99d7aac4ccca54be06da05aca2ef7423d22d27d4d4bcd8"
+checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
dependencies = [
"libc",
"rand_chacha",
"rand_core",
- "rand_hc",
]
[[package]]
@@ -296,15 +296,6 @@
]
[[package]]
-name = "rand_hc"
-version = "0.3.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d51e9f596de227fda2ea6c84607f5558e196eeaf43c986b724ba4fb8fdf497e7"
-dependencies = [
- "rand_core",
-]
-
-[[package]]
name = "regex"
version = "1.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -340,27 +331,18 @@
[[package]]
name = "termcolor"
-version = "1.1.2"
+version = "1.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2dfed899f0eb03f32ee8c6a0aabdb8a7949659e3466561fc0adf54e26d88c5f4"
+checksum = "bab24d30b911b2376f3a13cc2cd443142f0c81dda04c118693e35b3835757755"
dependencies = [
"winapi-util",
]
[[package]]
name = "textwrap"
-version = "0.12.1"
+version = "0.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "203008d98caf094106cfaba70acfed15e18ed3ddb7d94e49baec153a2b462789"
-dependencies = [
- "unicode-width",
-]
-
-[[package]]
-name = "unicode-width"
-version = "0.1.9"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3ed742d4ea2bd1176e236172c8429aaf54486e7ac098db29ffe6529e0ce50973"
+checksum = "b1141d4d61095b28419e22cb0bbf02755f5e54e0526f97f1e3d1d160e60885fb"
[[package]]
name = "unicode-xid"
@@ -379,12 +361,6 @@
]
[[package]]
-name = "vec_map"
-version = "0.8.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191"
-
-[[package]]
name = "version_check"
version = "0.9.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
diff --git a/examples/crate_universe/cargo_aliases/Cargo.toml b/examples/crate_universe/cargo_aliases/Cargo.toml
index e49f1bd..8a662c2 100644
--- a/examples/crate_universe/cargo_aliases/Cargo.toml
+++ b/examples/crate_universe/cargo_aliases/Cargo.toml
@@ -14,8 +14,8 @@
value-bag = "=1.0.0-alpha.7"
# Defines binary targets
-names = "=0.12.0"
-pinned_names = { package = "names", git = "https://github.com/fnichol/names.git", rev = "534b1cd239fb57933616f3d25ae258bdf708811d" }
+names = "=0.13.0"
+pinned_names = { package = "names", git = "https://github.com/fnichol/names.git", rev = "760516503b89ddc8bc2ab42d579d4566cfb1054f" }
[dev-dependencies]
env_logger = "0.9.0"