Skip to content

Commit 5119d63

Browse files
authored
Address reported RUSTSEC vulnerabilities. (#144)
Signed-off-by: Martijn Swaagman <[email protected]>
1 parent cf7894e commit 5119d63

File tree

7 files changed

+2
-99
lines changed

7 files changed

+2
-99
lines changed

.github/workflows/rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,4 +213,4 @@ jobs:
213213
- name: Run cargo audit
214214
run: |
215215
cp -p bazel/cargo/Cargo.raze.lock .
216-
cargo audit
216+
cargo audit --ignore RUSTSEC-2020-0159

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ wee_alloc = { version = "0.4", optional = true }
1818

1919
[dev-dependencies]
2020
cfg-if = "1.0"
21-
chrono = "0.4"
21+
chrono = { version = "0.4", default-features = false, features = ["clock", "std"] }
2222

2323
[target.'cfg(not(all(target_arch = "wasm32", target_os = "unknown")))'.dev-dependencies]
2424
getrandom = "0.2"

bazel/cargo/Cargo.raze.lock

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ dependencies = [
3838
"libc",
3939
"num-integer",
4040
"num-traits",
41-
"time",
4241
"winapi",
4342
]
4443

@@ -120,16 +119,6 @@ dependencies = [
120119
"wee_alloc",
121120
]
122121

123-
[[package]]
124-
name = "time"
125-
version = "0.1.43"
126-
source = "registry+https://github.com/rust-lang/crates.io-index"
127-
checksum = "ca8a50ef2360fbd1eeb0ecd46795a87a19024eb4b53c5dc916ca1fd95fe62438"
128-
dependencies = [
129-
"libc",
130-
"winapi",
131-
]
132-
133122
[[package]]
134123
name = "version_check"
135124
version = "0.9.4"

bazel/cargo/crates.bzl

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -121,16 +121,6 @@ def raze_fetch_remote_crates():
121121
build_file = Label("//bazel/cargo/remote:BUILD.once_cell-1.9.0.bazel"),
122122
)
123123

124-
maybe(
125-
http_archive,
126-
name = "raze__time__0_1_43",
127-
url = "https://crates.io/api/v1/crates/time/0.1.43/download",
128-
type = "tar.gz",
129-
sha256 = "ca8a50ef2360fbd1eeb0ecd46795a87a19024eb4b53c5dc916ca1fd95fe62438",
130-
strip_prefix = "time-0.1.43",
131-
build_file = Label("//bazel/cargo/remote:BUILD.time-0.1.43.bazel"),
132-
)
133-
134124
maybe(
135125
http_archive,
136126
name = "raze__version_check__0_9_4",

bazel/cargo/remote/BUILD.chrono-0.4.19.bazel

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,8 @@ rust_library(
4242
},
4343
crate_features = [
4444
"clock",
45-
"default",
4645
"libc",
47-
"oldtime",
4846
"std",
49-
"time",
5047
"winapi",
5148
],
5249
crate_root = "src/lib.rs",
@@ -66,7 +63,6 @@ rust_library(
6663
"@raze__libc__0_2_116//:libc",
6764
"@raze__num_integer__0_1_44//:num_integer",
6865
"@raze__num_traits__0_2_14//:num_traits",
69-
"@raze__time__0_1_43//:time",
7066
] + selects.with_or({
7167
# cfg(windows)
7268
(

bazel/cargo/remote/BUILD.time-0.1.43.bazel

Lines changed: 0 additions & 66 deletions
This file was deleted.

bazel/cargo/remote/BUILD.winapi-0.3.9.bazel

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,7 @@ cargo_build_script(
4545
crate_features = [
4646
"minwinbase",
4747
"minwindef",
48-
"ntdef",
49-
"profileapi",
5048
"std",
51-
"sysinfoapi",
5249
"timezoneapi",
5350
],
5451
crate_root = "build.rs",
@@ -73,10 +70,7 @@ rust_library(
7370
crate_features = [
7471
"minwinbase",
7572
"minwindef",
76-
"ntdef",
77-
"profileapi",
7873
"std",
79-
"sysinfoapi",
8074
"timezoneapi",
8175
],
8276
crate_root = "src/lib.rs",

0 commit comments

Comments
 (0)