Skip to content

Commit

Permalink
Add sha1 and tempfile crates.
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Jul 29, 2018
1 parent c06f278 commit 1f093c1
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 81 deletions.
5 changes: 5 additions & 0 deletions BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ config("deno_config") {
main_extern = [
"$rust_build:libc",
"$rust_build:log",
"$rust_build:sha1",
"$rust_build:tempfile",
"$rust_build:url",
"//build_extra/flatbuffers/rust:flatbuffers",
":msg_rs",
Expand All @@ -52,6 +54,9 @@ main_extern = [
"$rust_build:percent_encoding",
"$rust_build:unicode_bidi",
"$rust_build:unicode_normalization",
"$rust_build:rand",
"$rust_build:rand_core",
"$rust_build:remove_dir_all",
]

rust_executable("deno") {
Expand Down
80 changes: 0 additions & 80 deletions Cargo.lock

This file was deleted.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ version = "0.0.0"
url = "1.7.1"
libc = "0.2.42"
log = "0.4.3"
sha1 = "0.6.0"
tempfile = "3"
38 changes: 38 additions & 0 deletions build_extra/rust/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,41 @@ rust_component("cfg_if") {
source_root =
"$crates/registry/src/github.com-1ecc6299db9ec823/cfg-if-0.1.4/src/lib.rs"
}

rust_component("sha1") {
source_root =
"$crates/registry/src/github.com-1ecc6299db9ec823/sha1-0.6.0/src/lib.rs"
}

rust_component("tempfile") {
source_root = "$crates/registry/src/github.com-1ecc6299db9ec823/tempfile-3.0.3/src/lib.rs"
extern = [
":libc",
":rand",
":remove_dir_all",
]
}

rust_component("rand") {
source_root =
"$crates/registry/src/github.com-1ecc6299db9ec823/rand-0.5.4/src/lib.rs"
extern = [
":libc",
":rand_core",
]
cfg = [
"feature=\"std\"",
"feature=\"alloc\"",
]
if (is_mac) {
libs = [ "Security.framework" ]
}
}

rust_component("rand_core") {
source_root = "$crates/registry/src/github.com-1ecc6299db9ec823/rand_core-0.2.1/src/lib.rs"
}

rust_component("remove_dir_all") {
source_root = "$crates/registry/src/github.com-1ecc6299db9ec823/remove_dir_all-0.5.1/src/lib.rs"
}
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ extern crate libc;
extern crate log;
extern crate flatbuffers;
extern crate msg_rs as msg_generated;
extern crate sha1;
extern crate tempfile;
extern crate url;

use libc::c_int;
Expand Down
2 changes: 1 addition & 1 deletion third_party

0 comments on commit 1f093c1

Please sign in to comment.