summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cargo.lock92
-rw-r--r--crates/cli/Cargo.toml4
-rw-r--r--crates/cli/src/bin.rs (renamed from crates/cli/bin.rs)0
-rw-r--r--crates/cli/src/util.rs (renamed from crates/cli/util.rs)0
-rw-r--r--crates/cli/src/wat.rs (renamed from crates/cli/wat.rs)0
-rw-r--r--crates/parser/Cargo.toml2
-rw-r--r--crates/tinywasm/Cargo.toml2
-rw-r--r--crates/types/Cargo.toml4
8 files changed, 6 insertions, 98 deletions
diff --git a/Cargo.lock b/Cargo.lock
index a6c917f..1456976 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -100,24 +100,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5a667583cca8c4f8436db8de46ea8233c42a7d9ae424a82d338f2e4675229204"
dependencies = [
"backtrace",
- "color-spantrace",
"eyre",
"indenter",
"once_cell",
"owo-colors",
- "tracing-error",
-]
-
-[[package]]
-name = "color-spantrace"
-version = "0.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cd6be1b2a7e382e2b98b43b2adcca6bb0e465af0bdd38123873ae61eb17a72c2"
-dependencies = [
- "once_cell",
- "owo-colors",
- "tracing-core",
- "tracing-error",
]
[[package]]
@@ -195,12 +181,6 @@ dependencies = [
]
[[package]]
-name = "lazy_static"
-version = "1.4.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
-
-[[package]]
name = "leb128"
version = "0.2.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -261,12 +241,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c1b04fb49957986fdce4d6ee7a65027d55d4b6d2265e5848bbb507b58ccfdb6f"
[[package]]
-name = "pin-project-lite"
-version = "0.2.13"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8afb450f006bf6385ca15ef45d71d2288452bc3683ce2e2cacc0d18e4be60b58"
-
-[[package]]
name = "pretty_env_logger"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -411,15 +385,6 @@ dependencies = [
]
[[package]]
-name = "sharded-slab"
-version = "0.1.7"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6"
-dependencies = [
- "lazy_static",
-]
-
-[[package]]
name = "syn"
version = "1.0.109"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -451,16 +416,6 @@ dependencies = [
]
[[package]]
-name = "thread_local"
-version = "1.1.7"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3fdd6f064ccff2d6567adcb3873ca630700f00b5ad3f060c25b5dcfd9a4ce152"
-dependencies = [
- "cfg-if",
- "once_cell",
-]
-
-[[package]]
name = "tinywasm"
version = "0.0.0"
dependencies = [
@@ -500,47 +455,6 @@ dependencies = [
]
[[package]]
-name = "tracing"
-version = "0.1.40"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef"
-dependencies = [
- "pin-project-lite",
- "tracing-core",
-]
-
-[[package]]
-name = "tracing-core"
-version = "0.1.32"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54"
-dependencies = [
- "once_cell",
- "valuable",
-]
-
-[[package]]
-name = "tracing-error"
-version = "0.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d686ec1c0f384b1277f097b2f279a2ecc11afe8c133c1aabf036a27cb4cd206e"
-dependencies = [
- "tracing",
- "tracing-subscriber",
-]
-
-[[package]]
-name = "tracing-subscriber"
-version = "0.3.18"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ad0f048c97dbd9faa9b7df56362b8ebcaa52adb06b498c050d2f4e32f90a7a8b"
-dependencies = [
- "sharded-slab",
- "thread_local",
- "tracing-core",
-]
-
-[[package]]
name = "unicode-ident"
version = "1.0.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -553,12 +467,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e51733f11c9c4f72aa0c160008246859e340b00807569a0da0e7a1079b27ba85"
[[package]]
-name = "valuable"
-version = "0.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d"
-
-[[package]]
name = "wasm-encoder"
version = "0.38.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml
index dfb418a..60c3ad8 100644
--- a/crates/cli/Cargo.toml
+++ b/crates/cli/Cargo.toml
@@ -5,14 +5,14 @@ edition="2021"
[[bin]]
name="tinywasm"
-path="bin.rs"
+path="src/bin.rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
tinywasm={path="../tinywasm"}
argh="0.1"
-color-eyre="0.6"
+color-eyre={default-features=false}
log="0.4"
pretty_env_logger="0.5"
wast={version="69.0", optional=true}
diff --git a/crates/cli/bin.rs b/crates/cli/src/bin.rs
index 3615e4a..3615e4a 100644
--- a/crates/cli/bin.rs
+++ b/crates/cli/src/bin.rs
diff --git a/crates/cli/util.rs b/crates/cli/src/util.rs
index 8b13789..8b13789 100644
--- a/crates/cli/util.rs
+++ b/crates/cli/src/util.rs
diff --git a/crates/cli/wat.rs b/crates/cli/src/wat.rs
index fd00a8e..fd00a8e 100644
--- a/crates/cli/wat.rs
+++ b/crates/cli/src/wat.rs
diff --git a/crates/parser/Cargo.toml b/crates/parser/Cargo.toml
index b187886..e45d452 100644
--- a/crates/parser/Cargo.toml
+++ b/crates/parser/Cargo.toml
@@ -7,7 +7,7 @@ edition="2021"
# fork of wasmparser with no_std support, see https://github.com/bytecodealliance/wasmtime/issues/3495
# TODO: create dependency free parser
wasmparser={version="0.100", package="wasmparser-nostd", default-features=false}
-log="0.4.20"
+log="0.4"
tinywasm-types={path="../types"}
[features]
diff --git a/crates/tinywasm/Cargo.toml b/crates/tinywasm/Cargo.toml
index acd6736..ded786f 100644
--- a/crates/tinywasm/Cargo.toml
+++ b/crates/tinywasm/Cargo.toml
@@ -9,7 +9,7 @@ path="src/lib.rs"
crate-type=["cdylib", "rlib"]
[dependencies]
-log="0.4.20"
+log="0.4"
tinywasm-parser={path="../parser", default-features=false}
tinywasm-types={path="../types", default-features=false}
diff --git a/crates/types/Cargo.toml b/crates/types/Cargo.toml
index e34c474..e7f6f92 100644
--- a/crates/types/Cargo.toml
+++ b/crates/types/Cargo.toml
@@ -4,10 +4,10 @@ version="0.0.0"
edition="2021"
[dependencies]
-log="0.4.20"
+log={version="0.4", optional=true}
rkyv={version="0.7", optional=true, default-features=false}
[features]
default=["std"]
std=[]
-serialize=["dep:rkyv"]
+serialize=["dep:rkyv", "dep:log"]