diff options
author | Andy Hayden <andyhayden1@gmail.com> | 2018-11-05 09:55:59 -0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-11-05 09:55:59 -0800 |
commit | 27ecfc1617c79d23255e025fcbd0257b3523906a (patch) | |
tree | e6b68b4a291372e0a479d7dff156d546ff965d30 /build_extra/rust | |
parent | 5e48a681c4d6d6cb3debb4024b5108780dbbad90 (diff) |
Add repl (#998)
- Running repl from js side.
- Add tests for repl behavior.
- Handle ctrl-C and ctrl-D.
Diffstat (limited to 'build_extra/rust')
-rw-r--r-- | build_extra/rust/BUILD.gn | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/build_extra/rust/BUILD.gn b/build_extra/rust/BUILD.gn index 0db09052b..6740f3beb 100644 --- a/build_extra/rust/BUILD.gn +++ b/build_extra/rust/BUILD.gn @@ -11,6 +11,51 @@ import("rust.gni") crates = "//third_party/rust_crates" registry_github = "$crates/registry/src/github.com-1ecc6299db9ec823/" +rust_crate("nix") { + source_root = "$registry_github/nix-0.11.0/src/lib.rs" + extern = [ + ":cfg_if", + ":libc", + ":void", + ":bitflags", + ] +} + +rust_crate("rustyline") { + source_root = "$registry_github/rustyline-2.1.0/src/lib.rs" + extern = [ + ":dirs", + ":libc", + ":log", + ":memchr", + ":nix", + ":unicode_segmentation", + ":unicode_width", + ":utf8parse", + ":winapi", + ] +} + +rust_crate("bitflags") { + source_root = "$registry_github/bitflags-1.0.4/src/lib.rs" +} + +rust_crate("unicode_segmentation") { + source_root = "$registry_github/unicode-segmentation-1.2.1/src/lib.rs" +} + +rust_crate("memchr") { + source_root = "$registry_github/memchr-2.1.0/src/lib.rs" + extern = [ + ":cfg_if", + ":libc", + ] +} + +rust_crate("utf8parse") { + source_root = "$registry_github/utf8parse-0.1.1/src/lib.rs" +} + rust_crate("libc") { source_root = "$registry_github/libc-0.2.43/src/lib.rs" features = [ "use_std" ] @@ -127,6 +172,7 @@ rust_crate("winapi") { "knownfolders", "ktmtypes", "libloaderapi", + "limits", "lsalookup", "minwinbase", "minwindef", @@ -167,6 +213,7 @@ rust_crate("winapi") { "winnt", "winreg", "winsock2", + "winuser", "ws2def", "ws2ipdef", "ws2tcpip", |