Skip to content

Commit f4fb557

Browse files
committed
Add cli code, builds with cargo but not yet with wasm-pack
1 parent a0f47da commit f4fb557

File tree

13 files changed

+1696
-2
lines changed

13 files changed

+1696
-2
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ jobs:
2525

2626
- run: yarn install
2727

28+
- uses: Swatinem/rust-cache@v2
29+
with:
30+
workspaces: './src/wasm-lib'
31+
32+
- run: yarn build:wasm:dev
33+
2834
- run: yarn build
2935

3036
- run: yarn test

src/wasm-lib/Cargo.lock

Lines changed: 143 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/wasm-lib/Cargo.toml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,25 @@ crate-type = ["cdylib", "rlib"]
1212
default = ["console_error_panic_hook"]
1313

1414
[dependencies]
15+
atty = "0.2.14"
16+
anyhow = { version = "1", features = ["backtrace"] }
17+
colored = "2.1.0"
18+
colored_json = "4.1"
19+
dirs = "5"
1520
kcl-lib = { git = "https://github.com/kittycad/modeling-app", branch = "main" }
1621
kittycad = { version = "0.3.0", default-features = false, features = ["js", "requests"] }
22+
heck = "0.5.0"
23+
parse-display = "0.9.0"
24+
regex = "1"
25+
reqwest = { version = "0.11", default-features = false, features = ["json", "rustls-tls"] }
26+
serde = { version = "1", features = ["derive"] }
27+
shlex = "1.3.0"
28+
thiserror = "1"
29+
toml = "0.8.12"
30+
toml_edit = "0.21.0"
31+
unicode-segmentation = "1.11.0"
32+
url = "2.5.0"
33+
uuid = { version = "1.7", features = ["serde", "v4"] }
1734
wasm-bindgen = "0.2.84"
1835

1936
# The `console_error_panic_hook` crate provides better debugging of panics by
@@ -25,6 +42,22 @@ console_error_panic_hook = { version = "0.1.7", optional = true }
2542
[dev-dependencies]
2643
wasm-bindgen-test = "0.3.34"
2744

45+
# [target.'cfg(target_arch = "wasm32")'.dependencies]
46+
# futures = "0.3.29"
47+
# js-sys = "0.3.65"
48+
# tower-lsp = { version = "0.20.0", default-features = false, features = ["runtime-agnostic"] }
49+
# wasm-bindgen-futures = { version = "0.4.37", features = ["futures-core-03-stream"] }
50+
# wasm-streams = "0.4.0"
51+
52+
# [target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
53+
# version = "0.3.65"
54+
# features = [
55+
# "console",
56+
# "HtmlTextAreaElement",
57+
# "ReadableStream",
58+
# "WritableStream",
59+
# ]
60+
2861
[profile.release]
2962
# Tell `rustc` to optimize for small code size.
3063
opt-level = "s"

0 commit comments

Comments
 (0)