Skip to content

Commit

Permalink
Remove dependency on hashbrown (project-oak#870)
Browse files Browse the repository at this point in the history
This was making the build non-deterministic:
project-oak#862 (comment)

It was introduced in an attempt to make `oak_abi` `no_std` compatible,
but that's not necessary any more.

Ref project-oak#862
  • Loading branch information
tiziano88 authored Apr 20, 2020
1 parent 6ceb81c commit bc98624
Show file tree
Hide file tree
Showing 19 changed files with 32 additions and 414 deletions.
40 changes: 0 additions & 40 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions cargo/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,13 @@ alias(
name = "byteorder",
actual = "@raze__byteorder__1_3_4//:byteorder",
)
alias(
name = "hashbrown",
actual = "@raze__hashbrown__0_7_1//:hashbrown",
)
alias(
name = "http",
actual = "@raze__http__0_2_1//:http",
)
alias(
name = "hyper",
actual = "@raze__hyper__0_13_4//:hyper",
actual = "@raze__hyper__0_13_5//:hyper",
)
alias(
name = "indexmap",
Expand Down
1 change: 0 additions & 1 deletion cargo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ path = "fake_lib.rs"

[dependencies]
byteorder = "*"
hashbrown = "*"
http = "*"
hyper = "*"
# Versions 1.3.x of indexmap have a "clever" feature that auto-detects whether a
Expand Down
94 changes: 20 additions & 74 deletions cargo/crates.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,6 @@ def _new_git_repository(name, **kwargs):

def raze_fetch_remote_crates():

_new_http_archive(
name = "raze__ahash__0_3_2",
url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/ahash/ahash-0.3.2.crate",
type = "tar.gz",
strip_prefix = "ahash-0.3.2",

build_file = Label("//cargo/remote:ahash-0.3.2.BUILD"),
)

_new_http_archive(
name = "raze__anyhow__1_0_28",
url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/anyhow/anyhow-1.0.28.crate",
Expand Down Expand Up @@ -106,24 +97,6 @@ def raze_fetch_remote_crates():
build_file = Label("//cargo/remote:colored-1.9.3.BUILD"),
)

_new_http_archive(
name = "raze__const_random__0_1_8",
url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/const-random/const-random-0.1.8.crate",
type = "tar.gz",
strip_prefix = "const-random-0.1.8",

build_file = Label("//cargo/remote:const-random-0.1.8.BUILD"),
)

_new_http_archive(
name = "raze__const_random_macro__0_1_8",
url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/const-random-macro/const-random-macro-0.1.8.crate",
type = "tar.gz",
strip_prefix = "const-random-macro-0.1.8",

build_file = Label("//cargo/remote:const-random-macro-0.1.8.BUILD"),
)

_new_http_archive(
name = "raze__either__1_5_3",
url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/either/either-1.5.3.crate",
Expand Down Expand Up @@ -224,21 +197,12 @@ def raze_fetch_remote_crates():
)

_new_http_archive(
name = "raze__hashbrown__0_7_1",
url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/hashbrown/hashbrown-0.7.1.crate",
name = "raze__hermit_abi__0_1_11",
url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/hermit-abi/hermit-abi-0.1.11.crate",
type = "tar.gz",
strip_prefix = "hashbrown-0.7.1",
strip_prefix = "hermit-abi-0.1.11",

build_file = Label("//cargo/remote:hashbrown-0.7.1.BUILD"),
)

_new_http_archive(
name = "raze__hermit_abi__0_1_10",
url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/hermit-abi/hermit-abi-0.1.10.crate",
type = "tar.gz",
strip_prefix = "hermit-abi-0.1.10",

build_file = Label("//cargo/remote:hermit-abi-0.1.10.BUILD"),
build_file = Label("//cargo/remote:hermit-abi-0.1.11.BUILD"),
)

_new_http_archive(
Expand Down Expand Up @@ -269,12 +233,12 @@ def raze_fetch_remote_crates():
)

_new_http_archive(
name = "raze__hyper__0_13_4",
url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/hyper/hyper-0.13.4.crate",
name = "raze__hyper__0_13_5",
url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/hyper/hyper-0.13.5.crate",
type = "tar.gz",
strip_prefix = "hyper-0.13.4",
strip_prefix = "hyper-0.13.5",

build_file = Label("//cargo/remote:hyper-0.13.4.BUILD"),
build_file = Label("//cargo/remote:hyper-0.13.5.BUILD"),
)

_new_http_archive(
Expand Down Expand Up @@ -458,21 +422,21 @@ def raze_fetch_remote_crates():
)

_new_http_archive(
name = "raze__pin_project__0_4_8",
url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/pin-project/pin-project-0.4.8.crate",
name = "raze__pin_project__0_4_9",
url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/pin-project/pin-project-0.4.9.crate",
type = "tar.gz",
strip_prefix = "pin-project-0.4.8",
strip_prefix = "pin-project-0.4.9",

build_file = Label("//cargo/remote:pin-project-0.4.8.BUILD"),
build_file = Label("//cargo/remote:pin-project-0.4.9.BUILD"),
)

_new_http_archive(
name = "raze__pin_project_internal__0_4_8",
url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/pin-project-internal/pin-project-internal-0.4.8.crate",
name = "raze__pin_project_internal__0_4_9",
url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/pin-project-internal/pin-project-internal-0.4.9.crate",
type = "tar.gz",
strip_prefix = "pin-project-internal-0.4.8",
strip_prefix = "pin-project-internal-0.4.9",

build_file = Label("//cargo/remote:pin-project-internal-0.4.8.BUILD"),
build_file = Label("//cargo/remote:pin-project-internal-0.4.9.BUILD"),
)

_new_http_archive(
Expand Down Expand Up @@ -502,15 +466,6 @@ def raze_fetch_remote_crates():
build_file = Label("//cargo/remote:ppv-lite86-0.2.6.BUILD"),
)

_new_http_archive(
name = "raze__proc_macro_hack__0_5_15",
url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/proc-macro-hack/proc-macro-hack-0.5.15.crate",
type = "tar.gz",
strip_prefix = "proc-macro-hack-0.5.15",

build_file = Label("//cargo/remote:proc-macro-hack-0.5.15.BUILD"),
)

_new_http_archive(
name = "raze__proc_macro2__1_0_10",
url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/proc-macro2/proc-macro2-1.0.10.crate",
Expand Down Expand Up @@ -592,15 +547,6 @@ def raze_fetch_remote_crates():
build_file = Label("//cargo/remote:rand_hc-0.2.0.BUILD"),
)

_new_http_archive(
name = "raze__redox_syscall__0_1_56",
url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/redox_syscall/redox_syscall-0.1.56.crate",
type = "tar.gz",
strip_prefix = "redox_syscall-0.1.56",

build_file = Label("//cargo/remote:redox_syscall-0.1.56.BUILD"),
)

_new_http_archive(
name = "raze__simple_logger__1_6_0",
url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/simple_logger/simple_logger-1.6.0.crate",
Expand Down Expand Up @@ -629,12 +575,12 @@ def raze_fetch_remote_crates():
)

_new_http_archive(
name = "raze__time__0_1_42",
url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/time/time-0.1.42.crate",
name = "raze__time__0_1_43",
url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/time/time-0.1.43.crate",
type = "tar.gz",
strip_prefix = "time-0.1.42",
strip_prefix = "time-0.1.43",

build_file = Label("//cargo/remote:time-0.1.42.BUILD"),
build_file = Label("//cargo/remote:time-0.1.43.BUILD"),
)

_new_http_archive(
Expand Down
50 changes: 0 additions & 50 deletions cargo/remote/ahash-0.3.2.BUILD

This file was deleted.

2 changes: 1 addition & 1 deletion cargo/remote/chrono-0.4.11.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ rust_library(
deps = [
"@raze__num_integer__0_1_42//:num_integer",
"@raze__num_traits__0_2_11//:num_traits",
"@raze__time__0_1_42//:time",
"@raze__time__0_1_43//:time",
],
rustc_flags = [
"--cap-lints=allow",
Expand Down
45 changes: 0 additions & 45 deletions cargo/remote/const-random-0.1.8.BUILD

This file was deleted.

Loading

0 comments on commit bc98624

Please sign in to comment.