feat: add a histrical wit-bindgen

This commit is contained in:
2023-01-01 00:25:48 +08:00
parent 01e8f5a959
commit aa50d63aec
419 changed files with 45283 additions and 1 deletions

View File

@@ -0,0 +1,40 @@
[package]
name = "wit-component"
version = "0.1.0"
authors = ["Peter Huene <peter@huene.dev>"]
edition = "2021"
[[bin]]
name = "wit-component"
path = "src/bin/wit-component.rs"
required-features = ["cli"]
[[bin]]
name = "wit2wasm"
path = "src/bin/wit2wasm.rs"
required-features = ["cli"]
[[bin]]
name = "wasm2wit"
path = "src/bin/wasm2wit.rs"
required-features = ["cli"]
[dependencies]
wasmparser = "0.86.0"
wasm-encoder = "0.13.0"
wat = "1.0.44"
wit-parser = { path = "../parser" }
anyhow = "1.0.55"
indexmap = "1.8.0"
clap = { version = "3.1.0", features = ["derive"], optional = true }
env_logger = { version = "0.9.0", optional = true }
log = { version = "0.4.14", optional = true }
[dev-dependencies]
wasmprinter = "0.2.36"
glob = "0.3.0"
pretty_assertions = "1.2.0"
[features]
default = ["cli"]
cli = ["clap", "env_logger", "log"]