diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-07-16 21:27:37 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-07-18 15:43:50 -0400 |
commit | 2f94c5b48bfb6c9f5bce49af633100ae730a88c2 (patch) | |
tree | 1c9011b7aff842a8a5b7c7b01a9acf39d805b7a6 | |
parent | c6ae3f7abce4b0b26c29fada76a0aed5c226fed7 (diff) |
Add rust crate log to third_party.
-rw-r--r-- | BUILD.gn | 2 | ||||
-rw-r--r-- | build_extra/rust/BUILD.gn | 9 | ||||
-rw-r--r-- | gclient_config.py | 7 |
3 files changed, 18 insertions, 0 deletions
@@ -48,6 +48,7 @@ rust_staticlib("handlers") { extern = [ "$rust_build:libc", "$rust_build:url", + "$rust_build:log", ] } @@ -56,6 +57,7 @@ rust_test("handlers_test") { extern = [ "$rust_build:libc", "$rust_build:url", + "$rust_build:log", ] } diff --git a/build_extra/rust/BUILD.gn b/build_extra/rust/BUILD.gn index 4aeac67e5..b03632660 100644 --- a/build_extra/rust/BUILD.gn +++ b/build_extra/rust/BUILD.gn @@ -55,3 +55,12 @@ rust_component("unicode_bidi") { rust_component("unicode_normalization") { source_root = "$crates/unicode-normalization/src/lib.rs" } + +rust_component("log") { + source_root = "$crates/log/src/lib.rs" + extern = [ ":cfg_if" ] +} + +rust_component("cfg_if") { + source_root = "$crates/cfg_if/src/lib.rs" +} diff --git a/gclient_config.py b/gclient_config.py index 9f87d0f97..01d799b2e 100644 --- a/gclient_config.py +++ b/gclient_config.py @@ -62,4 +62,11 @@ solutions = [{ 'https://github.com/behnam/rust-unicode-normalization.git@3898e77b110246cb7243bf29b896c58d8975304a', 'name': 'rust_crates/unicode-normalization' +}, { + 'url': 'https://github.com/rust-lang-nursery/log.git@0.4.2', + 'name': 'rust_crates/log' +}, { + # Needed for log. + 'url': 'https://github.com/alexcrichton/cfg-if.git@0.1.4', + 'name': 'rust_crates/cfg_if' }] |