diff --git a/Cargo.toml b/Cargo.toml index e47b572f..25fd5a25 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ repository = "https://github.com/proxy-wasm/proxy-wasm-rust-sdk" edition = "2018" [dependencies] -hashbrown = { version = "0.8", default-features = false, features = ["ahash", "inline-more"] } +hashbrown = "0.9" log = "0.4" wee_alloc = "0.4" diff --git a/bazel/cargo/BUILD b/bazel/cargo/BUILD index 1683f612..4a095b98 100644 --- a/bazel/cargo/BUILD +++ b/bazel/cargo/BUILD @@ -10,12 +10,12 @@ licenses([ ]) alias( name = "chrono", - actual = "@raze__chrono__0_4_15//:chrono", + actual = "@raze__chrono__0_4_19//:chrono", tags = ["cargo-raze"], ) alias( name = "hashbrown", - actual = "@raze__hashbrown__0_8_2//:hashbrown", + actual = "@raze__hashbrown__0_9_1//:hashbrown", tags = ["cargo-raze"], ) alias( diff --git a/bazel/cargo/Cargo.lock b/bazel/cargo/Cargo.lock index a9421c7a..9d618368 100644 --- a/bazel/cargo/Cargo.lock +++ b/bazel/cargo/Cargo.lock @@ -2,15 +2,15 @@ # It is not intended for manual editing. [[package]] name = "ahash" -version = "0.3.8" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8fd72866655d1904d6b0997d0b07ba561047d070fbe29de039031c641b61217" +checksum = "f6789e291be47ace86a60303502173d84af8327e3627ecf334356ee0f87a164c" [[package]] name = "autocfg" -version = "1.0.0" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8aac770f1885fd7e387acedd76065302551364496e46b3dd00860b2f8359b9d" +checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a" [[package]] name = "cfg-if" @@ -20,30 +20,31 @@ checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" [[package]] name = "chrono" -version = "0.4.15" +version = "0.4.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "942f72db697d8767c22d46a598e01f2d3b475501ea43d0db4f16d90259182d0b" +checksum = "670ad68c9088c2a963aaa298cb369688cf3f9465ce5e2d4ca10e6e0098a1ce73" dependencies = [ + "libc", "num-integer", "num-traits", "time", + "winapi", ] [[package]] name = "hashbrown" -version = "0.8.2" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e91b62f79061a0bc2e046024cb7ba44b08419ed238ecbd9adbd787434b9e8c25" +checksum = "d7afe4a420e3fe79967a00898cc1f4db7c8a49a9333a29f8a4bd76a253d5cd04" dependencies = [ "ahash", - "autocfg", ] [[package]] name = "libc" -version = "0.2.74" +version = "0.2.80" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2f02823cf78b754822df5f7f268fb59822e7296276d3e069d8e8cb26a14bd10" +checksum = "4d58d1b70b004888f764dfbf6a26a3b0342a1632d33968e4a179d8011c760614" [[package]] name = "log" @@ -62,9 +63,9 @@ checksum = "8452105ba047068f40ff7093dd1d9da90898e63dd61736462e9cdda6a90ad3c3" [[package]] name = "num-integer" -version = "0.1.43" +version = "0.1.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d59457e662d541ba17869cf51cf177c0b5f0cbf476c66bdc90bf1edac4f875b" +checksum = "d2cc698a63b549a70bc047073d2949cce27cd1c7b0a4a862d08a8031bc2801db" dependencies = [ "autocfg", "num-traits", @@ -72,9 +73,9 @@ dependencies = [ [[package]] name = "num-traits" -version = "0.2.12" +version = "0.2.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac267bcc07f48ee5f8935ab0d24f316fb722d7a1292e2913f0cc196b29ffd611" +checksum = "9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290" dependencies = [ "autocfg", ] @@ -91,14 +92,21 @@ dependencies = [ [[package]] name = "time" -version = "0.1.43" +version = "0.1.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca8a50ef2360fbd1eeb0ecd46795a87a19024eb4b53c5dc916ca1fd95fe62438" +checksum = "6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255" dependencies = [ "libc", + "wasi", "winapi", ] +[[package]] +name = "wasi" +version = "0.10.0+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f" + [[package]] name = "wee_alloc" version = "0.4.5" diff --git a/bazel/cargo/crates.bzl b/bazel/cargo/crates.bzl index 5b60b01e..e133346e 100644 --- a/bazel/cargo/crates.bzl +++ b/bazel/cargo/crates.bzl @@ -17,21 +17,21 @@ def _new_git_repository(name, **kwargs): def raze_fetch_remote_crates(): _new_http_archive( - name = "raze__ahash__0_3_8", - url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/ahash/ahash-0.3.8.crate", + name = "raze__ahash__0_4_6", + url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/ahash/ahash-0.4.6.crate", type = "tar.gz", - sha256 = "e8fd72866655d1904d6b0997d0b07ba561047d070fbe29de039031c641b61217", - strip_prefix = "ahash-0.3.8", - build_file = Label("//bazel/cargo/remote:ahash-0.3.8.BUILD"), + sha256 = "f6789e291be47ace86a60303502173d84af8327e3627ecf334356ee0f87a164c", + strip_prefix = "ahash-0.4.6", + build_file = Label("//bazel/cargo/remote:ahash-0.4.6.BUILD"), ) _new_http_archive( - name = "raze__autocfg__1_0_0", - url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/autocfg/autocfg-1.0.0.crate", + name = "raze__autocfg__1_0_1", + url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/autocfg/autocfg-1.0.1.crate", type = "tar.gz", - sha256 = "f8aac770f1885fd7e387acedd76065302551364496e46b3dd00860b2f8359b9d", - strip_prefix = "autocfg-1.0.0", - build_file = Label("//bazel/cargo/remote:autocfg-1.0.0.BUILD"), + sha256 = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a", + strip_prefix = "autocfg-1.0.1", + build_file = Label("//bazel/cargo/remote:autocfg-1.0.1.BUILD"), ) _new_http_archive( @@ -44,30 +44,30 @@ def raze_fetch_remote_crates(): ) _new_http_archive( - name = "raze__chrono__0_4_15", - url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/chrono/chrono-0.4.15.crate", + name = "raze__chrono__0_4_19", + url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/chrono/chrono-0.4.19.crate", type = "tar.gz", - sha256 = "942f72db697d8767c22d46a598e01f2d3b475501ea43d0db4f16d90259182d0b", - strip_prefix = "chrono-0.4.15", - build_file = Label("//bazel/cargo/remote:chrono-0.4.15.BUILD"), + sha256 = "670ad68c9088c2a963aaa298cb369688cf3f9465ce5e2d4ca10e6e0098a1ce73", + strip_prefix = "chrono-0.4.19", + build_file = Label("//bazel/cargo/remote:chrono-0.4.19.BUILD"), ) _new_http_archive( - name = "raze__hashbrown__0_8_2", - url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/hashbrown/hashbrown-0.8.2.crate", + name = "raze__hashbrown__0_9_1", + url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/hashbrown/hashbrown-0.9.1.crate", type = "tar.gz", - sha256 = "e91b62f79061a0bc2e046024cb7ba44b08419ed238ecbd9adbd787434b9e8c25", - strip_prefix = "hashbrown-0.8.2", - build_file = Label("//bazel/cargo/remote:hashbrown-0.8.2.BUILD"), + sha256 = "d7afe4a420e3fe79967a00898cc1f4db7c8a49a9333a29f8a4bd76a253d5cd04", + strip_prefix = "hashbrown-0.9.1", + build_file = Label("//bazel/cargo/remote:hashbrown-0.9.1.BUILD"), ) _new_http_archive( - name = "raze__libc__0_2_74", - url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/libc/libc-0.2.74.crate", + name = "raze__libc__0_2_80", + url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/libc/libc-0.2.80.crate", type = "tar.gz", - sha256 = "a2f02823cf78b754822df5f7f268fb59822e7296276d3e069d8e8cb26a14bd10", - strip_prefix = "libc-0.2.74", - build_file = Label("//bazel/cargo/remote:libc-0.2.74.BUILD"), + sha256 = "4d58d1b70b004888f764dfbf6a26a3b0342a1632d33968e4a179d8011c760614", + strip_prefix = "libc-0.2.80", + build_file = Label("//bazel/cargo/remote:libc-0.2.80.BUILD"), ) _new_http_archive( @@ -89,30 +89,39 @@ def raze_fetch_remote_crates(): ) _new_http_archive( - name = "raze__num_integer__0_1_43", - url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/num-integer/num-integer-0.1.43.crate", + name = "raze__num_integer__0_1_44", + url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/num-integer/num-integer-0.1.44.crate", type = "tar.gz", - sha256 = "8d59457e662d541ba17869cf51cf177c0b5f0cbf476c66bdc90bf1edac4f875b", - strip_prefix = "num-integer-0.1.43", - build_file = Label("//bazel/cargo/remote:num-integer-0.1.43.BUILD"), + sha256 = "d2cc698a63b549a70bc047073d2949cce27cd1c7b0a4a862d08a8031bc2801db", + strip_prefix = "num-integer-0.1.44", + build_file = Label("//bazel/cargo/remote:num-integer-0.1.44.BUILD"), ) _new_http_archive( - name = "raze__num_traits__0_2_12", - url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/num-traits/num-traits-0.2.12.crate", + name = "raze__num_traits__0_2_14", + url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/num-traits/num-traits-0.2.14.crate", type = "tar.gz", - sha256 = "ac267bcc07f48ee5f8935ab0d24f316fb722d7a1292e2913f0cc196b29ffd611", - strip_prefix = "num-traits-0.2.12", - build_file = Label("//bazel/cargo/remote:num-traits-0.2.12.BUILD"), + sha256 = "9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290", + strip_prefix = "num-traits-0.2.14", + build_file = Label("//bazel/cargo/remote:num-traits-0.2.14.BUILD"), ) _new_http_archive( - name = "raze__time__0_1_43", - url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/time/time-0.1.43.crate", + name = "raze__time__0_1_44", + url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/time/time-0.1.44.crate", type = "tar.gz", - sha256 = "ca8a50ef2360fbd1eeb0ecd46795a87a19024eb4b53c5dc916ca1fd95fe62438", - strip_prefix = "time-0.1.43", - build_file = Label("//bazel/cargo/remote:time-0.1.43.BUILD"), + sha256 = "6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255", + strip_prefix = "time-0.1.44", + build_file = Label("//bazel/cargo/remote:time-0.1.44.BUILD"), + ) + + _new_http_archive( + name = "raze__wasi__0_10_0_wasi_snapshot_preview1", + url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/wasi/wasi-0.10.0+wasi-snapshot-preview1.crate", + type = "tar.gz", + sha256 = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f", + strip_prefix = "wasi-0.10.0+wasi-snapshot-preview1", + build_file = Label("//bazel/cargo/remote:wasi-0.10.0+wasi-snapshot-preview1.BUILD"), ) _new_http_archive( diff --git a/bazel/cargo/remote/ahash-0.3.8.BUILD b/bazel/cargo/remote/ahash-0.4.6.BUILD similarity index 97% rename from bazel/cargo/remote/ahash-0.3.8.BUILD rename to bazel/cargo/remote/ahash-0.4.6.BUILD index 56f7acd7..c79e45d7 100644 --- a/bazel/cargo/remote/ahash-0.3.8.BUILD +++ b/bazel/cargo/remote/ahash-0.4.6.BUILD @@ -36,7 +36,7 @@ rust_library( rustc_flags = [ "--cap-lints=allow", ], - version = "0.3.8", + version = "0.4.6", tags = ["cargo-raze"], crate_features = [ ], diff --git a/bazel/cargo/remote/autocfg-1.0.0.BUILD b/bazel/cargo/remote/autocfg-1.0.1.BUILD similarity index 97% rename from bazel/cargo/remote/autocfg-1.0.0.BUILD rename to bazel/cargo/remote/autocfg-1.0.1.BUILD index 34c629ae..088d5bcc 100644 --- a/bazel/cargo/remote/autocfg-1.0.0.BUILD +++ b/bazel/cargo/remote/autocfg-1.0.1.BUILD @@ -35,7 +35,7 @@ rust_library( rustc_flags = [ "--cap-lints=allow", ], - version = "1.0.0", + version = "1.0.1", tags = ["cargo-raze"], crate_features = [ ], diff --git a/bazel/cargo/remote/chrono-0.4.15.BUILD b/bazel/cargo/remote/chrono-0.4.19.BUILD similarity index 79% rename from bazel/cargo/remote/chrono-0.4.15.BUILD rename to bazel/cargo/remote/chrono-0.4.19.BUILD index f19c711c..b0369d4e 100644 --- a/bazel/cargo/remote/chrono-0.4.15.BUILD +++ b/bazel/cargo/remote/chrono-0.4.19.BUILD @@ -29,9 +29,10 @@ rust_library( name = "chrono", crate_type = "lib", deps = [ - "@raze__num_integer__0_1_43//:num_integer", - "@raze__num_traits__0_2_12//:num_traits", - "@raze__time__0_1_43//:time", + "@raze__libc__0_2_80//:libc", + "@raze__num_integer__0_1_44//:num_integer", + "@raze__num_traits__0_2_14//:num_traits", + "@raze__time__0_1_44//:time", ], srcs = glob(["**/*.rs"]), crate_root = "src/lib.rs", @@ -39,13 +40,16 @@ rust_library( rustc_flags = [ "--cap-lints=allow", ], - version = "0.4.15", + version = "0.4.19", tags = ["cargo-raze"], crate_features = [ "clock", "default", + "libc", + "oldtime", "std", "time", + "winapi", ], ) diff --git a/bazel/cargo/remote/hashbrown-0.8.2.BUILD b/bazel/cargo/remote/hashbrown-0.9.1.BUILD similarity index 88% rename from bazel/cargo/remote/hashbrown-0.8.2.BUILD rename to bazel/cargo/remote/hashbrown-0.9.1.BUILD index f3416b79..ac49a03d 100644 --- a/bazel/cargo/remote/hashbrown-0.8.2.BUILD +++ b/bazel/cargo/remote/hashbrown-0.9.1.BUILD @@ -24,13 +24,12 @@ load( # Unsupported target "bench" with type "bench" omitted -# Unsupported target "build-script-build" with type "custom-build" omitted rust_library( name = "hashbrown", crate_type = "lib", deps = [ - "@raze__ahash__0_3_8//:ahash", + "@raze__ahash__0_4_6//:ahash", ], srcs = glob(["**/*.rs"]), crate_root = "src/lib.rs", @@ -38,10 +37,11 @@ rust_library( rustc_flags = [ "--cap-lints=allow", ], - version = "0.8.2", + version = "0.9.1", tags = ["cargo-raze"], crate_features = [ "ahash", + "default", "inline-more", ], ) diff --git a/bazel/cargo/remote/libc-0.2.74.BUILD b/bazel/cargo/remote/libc-0.2.80.BUILD similarity index 97% rename from bazel/cargo/remote/libc-0.2.74.BUILD rename to bazel/cargo/remote/libc-0.2.80.BUILD index 3fc249c0..29ee9e12 100644 --- a/bazel/cargo/remote/libc-0.2.74.BUILD +++ b/bazel/cargo/remote/libc-0.2.80.BUILD @@ -37,7 +37,7 @@ rust_library( rustc_flags = [ "--cap-lints=allow", ], - version = "0.2.74", + version = "0.2.80", tags = ["cargo-raze"], crate_features = [ "default", diff --git a/bazel/cargo/remote/num-integer-0.1.43.BUILD b/bazel/cargo/remote/num-integer-0.1.44.BUILD similarity index 93% rename from bazel/cargo/remote/num-integer-0.1.43.BUILD rename to bazel/cargo/remote/num-integer-0.1.44.BUILD index 45c79ea3..66715db2 100644 --- a/bazel/cargo/remote/num-integer-0.1.43.BUILD +++ b/bazel/cargo/remote/num-integer-0.1.44.BUILD @@ -32,7 +32,7 @@ rust_library( name = "num_integer", crate_type = "lib", deps = [ - "@raze__num_traits__0_2_12//:num_traits", + "@raze__num_traits__0_2_14//:num_traits", ], srcs = glob(["**/*.rs"]), crate_root = "src/lib.rs", @@ -40,7 +40,7 @@ rust_library( rustc_flags = [ "--cap-lints=allow", ], - version = "0.1.43", + version = "0.1.44", tags = ["cargo-raze"], crate_features = [ ], diff --git a/bazel/cargo/remote/num-traits-0.2.12.BUILD b/bazel/cargo/remote/num-traits-0.2.14.BUILD similarity index 97% rename from bazel/cargo/remote/num-traits-0.2.12.BUILD rename to bazel/cargo/remote/num-traits-0.2.14.BUILD index d870bc23..88cd7de7 100644 --- a/bazel/cargo/remote/num-traits-0.2.12.BUILD +++ b/bazel/cargo/remote/num-traits-0.2.14.BUILD @@ -37,7 +37,7 @@ rust_library( rustc_flags = [ "--cap-lints=allow", ], - version = "0.2.12", + version = "0.2.14", tags = ["cargo-raze"], crate_features = [ ], diff --git a/bazel/cargo/remote/time-0.1.43.BUILD b/bazel/cargo/remote/time-0.1.44.BUILD similarity index 92% rename from bazel/cargo/remote/time-0.1.43.BUILD rename to bazel/cargo/remote/time-0.1.44.BUILD index e3a046b0..260cb3af 100644 --- a/bazel/cargo/remote/time-0.1.43.BUILD +++ b/bazel/cargo/remote/time-0.1.44.BUILD @@ -28,7 +28,7 @@ rust_library( name = "time", crate_type = "lib", deps = [ - "@raze__libc__0_2_74//:libc", + "@raze__libc__0_2_80//:libc", ], srcs = glob(["**/*.rs"]), crate_root = "src/lib.rs", @@ -36,7 +36,7 @@ rust_library( rustc_flags = [ "--cap-lints=allow", ], - version = "0.1.43", + version = "0.1.44", tags = ["cargo-raze"], crate_features = [ ], diff --git a/bazel/cargo/remote/wasi-0.10.0+wasi-snapshot-preview1.BUILD b/bazel/cargo/remote/wasi-0.10.0+wasi-snapshot-preview1.BUILD new file mode 100644 index 00000000..4b6c4e43 --- /dev/null +++ b/bazel/cargo/remote/wasi-0.10.0+wasi-snapshot-preview1.BUILD @@ -0,0 +1,45 @@ +""" +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 "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR (Apache-2.0 OR MIT)" +]) + +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_library", + "rust_binary", + "rust_test", +) + + + +rust_library( + name = "wasi", + crate_type = "lib", + deps = [ + ], + srcs = glob(["**/*.rs"]), + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + version = "0.10.0+wasi-snapshot-preview1", + tags = ["cargo-raze"], + crate_features = [ + "default", + "std", + ], +) +