diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index c0f9b47f..7be38bca 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -213,4 +213,4 @@ jobs: - name: Run cargo audit run: | cp -p bazel/cargo/Cargo.raze.lock . - cargo audit + cargo audit --ignore RUSTSEC-2020-0159 diff --git a/Cargo.toml b/Cargo.toml index 22eebd9b..57a5dcf9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ wee_alloc = { version = "0.4", optional = true } [dev-dependencies] cfg-if = "1.0" -chrono = "0.4" +chrono = { version = "0.4", default-features = false, features = ["clock", "std"] } [target.'cfg(not(all(target_arch = "wasm32", target_os = "unknown")))'.dev-dependencies] getrandom = "0.2" diff --git a/bazel/cargo/Cargo.raze.lock b/bazel/cargo/Cargo.raze.lock index 77da91cd..66d60af2 100644 --- a/bazel/cargo/Cargo.raze.lock +++ b/bazel/cargo/Cargo.raze.lock @@ -38,7 +38,6 @@ dependencies = [ "libc", "num-integer", "num-traits", - "time", "winapi", ] @@ -120,16 +119,6 @@ dependencies = [ "wee_alloc", ] -[[package]] -name = "time" -version = "0.1.43" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca8a50ef2360fbd1eeb0ecd46795a87a19024eb4b53c5dc916ca1fd95fe62438" -dependencies = [ - "libc", - "winapi", -] - [[package]] name = "version_check" version = "0.9.4" diff --git a/bazel/cargo/crates.bzl b/bazel/cargo/crates.bzl index 44ed1395..2056204d 100644 --- a/bazel/cargo/crates.bzl +++ b/bazel/cargo/crates.bzl @@ -121,16 +121,6 @@ def raze_fetch_remote_crates(): build_file = Label("//bazel/cargo/remote:BUILD.once_cell-1.9.0.bazel"), ) - maybe( - http_archive, - name = "raze__time__0_1_43", - url = "https://crates.io/api/v1/crates/time/0.1.43/download", - type = "tar.gz", - sha256 = "ca8a50ef2360fbd1eeb0ecd46795a87a19024eb4b53c5dc916ca1fd95fe62438", - strip_prefix = "time-0.1.43", - build_file = Label("//bazel/cargo/remote:BUILD.time-0.1.43.bazel"), - ) - maybe( http_archive, name = "raze__version_check__0_9_4", diff --git a/bazel/cargo/remote/BUILD.chrono-0.4.19.bazel b/bazel/cargo/remote/BUILD.chrono-0.4.19.bazel index 60a69912..55d0506a 100644 --- a/bazel/cargo/remote/BUILD.chrono-0.4.19.bazel +++ b/bazel/cargo/remote/BUILD.chrono-0.4.19.bazel @@ -42,11 +42,8 @@ rust_library( }, crate_features = [ "clock", - "default", "libc", - "oldtime", "std", - "time", "winapi", ], crate_root = "src/lib.rs", @@ -66,7 +63,6 @@ rust_library( "@raze__libc__0_2_116//:libc", "@raze__num_integer__0_1_44//:num_integer", "@raze__num_traits__0_2_14//:num_traits", - "@raze__time__0_1_43//:time", ] + selects.with_or({ # cfg(windows) ( diff --git a/bazel/cargo/remote/BUILD.time-0.1.43.bazel b/bazel/cargo/remote/BUILD.time-0.1.43.bazel deleted file mode 100644 index f7699e88..00000000 --- a/bazel/cargo/remote/BUILD.time-0.1.43.bazel +++ /dev/null @@ -1,66 +0,0 @@ -""" -@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 "//bazel/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 = "time", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=time", - "manual", - ], - version = "0.1.43", - # buildifier: leave-alone - deps = [ - "@raze__libc__0_2_116//:libc", - ] + selects.with_or({ - # cfg(windows) - ( - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - "@raze__winapi__0_3_9//:winapi", - ], - "//conditions:default": [], - }), -) diff --git a/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel b/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel index 690f1920..07f0a568 100644 --- a/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel +++ b/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel @@ -45,10 +45,7 @@ cargo_build_script( crate_features = [ "minwinbase", "minwindef", - "ntdef", - "profileapi", "std", - "sysinfoapi", "timezoneapi", ], crate_root = "build.rs", @@ -73,10 +70,7 @@ rust_library( crate_features = [ "minwinbase", "minwindef", - "ntdef", - "profileapi", "std", - "sysinfoapi", "timezoneapi", ], crate_root = "src/lib.rs",