Skip to content

Commit

Permalink
chore: merge branch 'main' of github.com:thalo-rs/esdl into feat/synt…
Browse files Browse the repository at this point in the history
…ax-updates
  • Loading branch information
tqwewe committed Mar 23, 2022
2 parents 9b33cf7 + 0a7ccb2 commit 80f975e
Show file tree
Hide file tree
Showing 13 changed files with 731 additions and 216 deletions.
317 changes: 316 additions & 1 deletion Cargo.lock

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,25 @@ all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[dependencies]
handlebars = { version = "4.2", optional = true }
heck = { version = "0.4", optional = true }
nom = { version = "7.1", features = ["alloc"] }
nom-supreme = "0.6"
serde = { version = "1.0", features = ["derive"] }
thiserror = "1.0"
wit-parser = { git = "https://github.com/bytecodealliance/wit-bindgen", optional = true }
wit-bindgen-gen-core = { git = "https://github.com/bytecodealliance/wit-bindgen", optional = true }
wit-bindgen-gen-rust-wasm = { git = "https://github.com/bytecodealliance/wit-bindgen", optional = true }

[features]
default = []
codegen-rust = ["heck"]
codegen-rust-wasm = [
"heck",
"handlebars",
"wit-parser",
"wit-bindgen-gen-core",
"wit-bindgen-gen-rust-wasm",
]
codegen-typescript = []
wasm = []
198 changes: 179 additions & 19 deletions examples/bank-account-wasm/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/bank-account-wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ serde_json = "1.0"
wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen.git" }

[build-dependencies]
esdl = { path = "../..", features = ["codegen-rust", "wasm"] }
esdl = { path = "../..", features = ["codegen-rust-wasm"] }
2 changes: 1 addition & 1 deletion examples/bank-account-wasm/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use esdl::codegen::{rust::RustCompiler, Compiler};
fn main() -> Result<(), Box<dyn std::error::Error>> {
Compiler::new(RustCompiler)
.add_schema_file("./bank-account.esdl")?
.wasm(true)
.with_wasm()
.compile()?;

Ok(())
Expand Down
20 changes: 0 additions & 20 deletions examples/bank-account-wasm/domain.wit

This file was deleted.

Loading

0 comments on commit 80f975e

Please sign in to comment.