Begin adding wasi support (#2643)

* Begin adding wasi support

* Now it builds and runs but needs more help
This commit is contained in:
Jonathan Turner 2020-10-07 11:21:24 +13:00 committed by GitHub
parent a18b2702ca
commit f14f4e39c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 12 deletions

8
Cargo.lock generated
View file

@ -2228,9 +2228,12 @@ dependencies = [
[[package]] [[package]]
name = "instant" name = "instant"
version = "0.1.6" version = "0.1.7"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5b141fdc7836c525d4d594027d318c84161ca17aaf8113ab1f81ab93ae897485" checksum = "63312a18f7ea8760cdd0a7c5aac1a619752a246b833545e3e36d1f81f7cd9e66"
dependencies = [
"cfg-if",
]
[[package]] [[package]]
name = "iovec" name = "iovec"
@ -2931,6 +2934,7 @@ dependencies = [
"ical", "ical",
"ichwh", "ichwh",
"indexmap", "indexmap",
"instant",
"itertools", "itertools",
"log 0.4.11", "log 0.4.11",
"meval", "meval",

View file

@ -27,8 +27,8 @@ nu-protocol = {version = "0.20.0", path = "./crates/nu-protocol"}
nu-source = {version = "0.20.0", path = "./crates/nu-source"} nu-source = {version = "0.20.0", path = "./crates/nu-source"}
nu-value-ext = {version = "0.20.0", path = "./crates/nu-value-ext"} nu-value-ext = {version = "0.20.0", path = "./crates/nu-value-ext"}
nu_plugin_chart = {version = "0.20.0", path = "./crates/nu_plugin_chart", optional = true}
nu_plugin_binaryview = {version = "0.20.0", path = "./crates/nu_plugin_binaryview", optional = true} nu_plugin_binaryview = {version = "0.20.0", path = "./crates/nu_plugin_binaryview", optional = true}
nu_plugin_chart = {version = "0.20.0", path = "./crates/nu_plugin_chart", optional = true}
nu_plugin_fetch = {version = "0.20.0", path = "./crates/nu_plugin_fetch", optional = true} nu_plugin_fetch = {version = "0.20.0", path = "./crates/nu_plugin_fetch", optional = true}
nu_plugin_from_bson = {version = "0.20.0", path = "./crates/nu_plugin_from_bson", optional = true} nu_plugin_from_bson = {version = "0.20.0", path = "./crates/nu_plugin_from_bson", optional = true}
nu_plugin_from_sqlite = {version = "0.20.0", path = "./crates/nu_plugin_from_sqlite", optional = true} nu_plugin_from_sqlite = {version = "0.20.0", path = "./crates/nu_plugin_from_sqlite", optional = true}
@ -46,14 +46,14 @@ nu_plugin_tree = {version = "0.20.0", path = "./crates/nu_plugin_tree", optional
# Required to bootstrap the main binary # Required to bootstrap the main binary
clap = "2.33.3" clap = "2.33.3"
ctrlc = "3.1.6" ctrlc = {version = "3.1.6", optional = true}
futures = {version = "0.3.5", features = ["compat", "io-compat"]} futures = {version = "0.3.5", features = ["compat", "io-compat"]}
log = "0.4.11" log = "0.4.11"
pretty_env_logger = "0.4.0" pretty_env_logger = "0.4.0"
[dev-dependencies] [dev-dependencies]
nu-test-support = {version = "0.20.0", path = "./crates/nu-test-support"}
dunce = "1.0.1" dunce = "1.0.1"
nu-test-support = {version = "0.20.0", path = "./crates/nu-test-support"}
[build-dependencies] [build-dependencies]
serde = {version = "1.0.115", features = ["derive"]} serde = {version = "1.0.115", features = ["derive"]}
@ -91,27 +91,29 @@ default = [
extra = ["default", "binaryview", "tree", "clipboard-cli", "trash-support", "start", "bson", "sqlite", "s3", "chart"] extra = ["default", "binaryview", "tree", "clipboard-cli", "trash-support", "start", "bson", "sqlite", "s3", "chart"]
stable = ["default"] stable = ["default"]
wasi = ["inc", "match", "directories-support", "ptree-support", "match", "tree", "rustyline-support"]
trace = ["nu-parser/trace"] trace = ["nu-parser/trace"]
# Stable (Default) # Stable (Default)
fetch = ["nu_plugin_fetch"]
inc = ["nu_plugin_inc"] inc = ["nu_plugin_inc"]
match = ["nu_plugin_match"]
post = ["nu_plugin_post"]
ps = ["nu_plugin_ps"] ps = ["nu_plugin_ps"]
sys = ["nu_plugin_sys"] sys = ["nu_plugin_sys"]
textview = ["nu_plugin_textview"] textview = ["nu_plugin_textview"]
fetch = ["nu_plugin_fetch"]
match = ["nu_plugin_match"]
post = ["nu_plugin_post"]
# Extra # Extra
binaryview = ["nu_plugin_binaryview"]
bson = ["nu_plugin_from_bson", "nu_plugin_to_bson"] bson = ["nu_plugin_from_bson", "nu_plugin_to_bson"]
chart = ["nu_plugin_chart"] chart = ["nu_plugin_chart"]
binaryview = ["nu_plugin_binaryview"]
clipboard-cli = ["nu-cli/clipboard-cli"] clipboard-cli = ["nu-cli/clipboard-cli"]
trash-support = ["nu-cli/trash-support"]
start = ["nu_plugin_start"]
tree = ["nu_plugin_tree"]
s3 = ["nu_plugin_s3"] s3 = ["nu_plugin_s3"]
sqlite = ["nu_plugin_from_sqlite", "nu_plugin_to_sqlite"] sqlite = ["nu_plugin_from_sqlite", "nu_plugin_to_sqlite"]
start = ["nu_plugin_start"]
trash-support = ["nu-cli/trash-support"]
tree = ["nu_plugin_tree"]
# Core plugins that ship with `cargo install nu` by default # Core plugins that ship with `cargo install nu` by default
# Currently, Cargo limits us to installing only one binary # Currently, Cargo limits us to installing only one binary

View file

@ -52,6 +52,7 @@ htmlescape = "0.3.1"
ical = "0.6.0" ical = "0.6.0"
ichwh = {version = "0.3.4", optional = true} ichwh = {version = "0.3.4", optional = true}
indexmap = {version = "1.6.0", features = ["serde-1"]} indexmap = {version = "1.6.0", features = ["serde-1"]}
instant = "0.1.7"
itertools = "0.9.0" itertools = "0.9.0"
log = "0.4.11" log = "0.4.11"
meval = "0.2.0" meval = "0.2.0"