Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
164 changes: 145 additions & 19 deletions Cargo.lock

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

7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ rowan = "0.15.15"
smol_str = "0.3.2"
enum-iterator = "2.1.0"
line-index = "0.1.2"
serde-wasm-bindgen = "0.6.5"
wasm-bindgen = "0.2.100"
wasm-bindgen-test = "0.3.34"
web-sys = "0.3.77"
console_error_panic_hook = "0.1.7"
console_log = "1.0.0"

# local
squawk-parser = { version = "0.0.0", path = "./crates/parser" }
Expand All @@ -44,6 +50,7 @@ squawk-github = { version = "0.0.0", path = "./crates/github" }
squawk_lexer = { version = "0.0.0", path = "./crates/squawk_lexer" }
squawk_parser = { version = "0.0.0", path = "./crates/squawk_parser" }
squawk_syntax = { version = "0.0.0", path = "./crates/squawk_syntax" }
squawk_linter = { version = "0.0.0", path = "./crates/squawk_linter" }

[workspace.lints.clippy]
collapsible_else_if = "allow"
Expand Down
34 changes: 34 additions & 0 deletions crates/squawk_wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[package]
name = "squawk_wasm"
version = "0.1.0"
edition.workspace = true
rust-version.workspace = true
authors.workspace = true
license.workspace = true

[lib]
crate-type = ["cdylib", "rlib"]

[features]
default = ["console_error_panic_hook"]

[dependencies]

squawk_syntax.workspace = true
squawk_linter.workspace = true
squawk_lexer.workspace = true

wasm-bindgen.workspace = true
serde-wasm-bindgen.workspace = true
serde.workspace = true
console_error_panic_hook = { workspace = true, optional = true }
web-sys = { workspace = true, features = ["Window"] }
console_log.workspace = true
log.workspace = true
line-index.workspace = true

[dev-dependencies]
wasm-bindgen-test.workspace = true

[lints]
workspace = true
5 changes: 5 additions & 0 deletions crates/squawk_wasm/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# squak_wasm

```shell
wasm-pack build --target web crates/squawk_wasm
```
Loading
Loading