Skip to content

Commit

Permalink
feat(component): Support ts transpiling component
Browse files Browse the repository at this point in the history
  • Loading branch information
fangyinc committed Nov 11, 2024
1 parent 3c54d38 commit acea154
Show file tree
Hide file tree
Showing 29 changed files with 3,498 additions and 180 deletions.
929 changes: 911 additions & 18 deletions Cargo.lock

Large diffs are not rendered by default.

22 changes: 19 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ resolver = "2"
members = [
"crates/*",
"bindings/python/lyric-py",
"components/rust/*",
]
default-members = [
"crates/*",
Expand Down Expand Up @@ -37,16 +38,31 @@ uuid = { version = "1.10.0", features = ["v4"] }
clap = { version = "4.5.17", features = ["derive"] }
bollard = "0.17.1"
futures-util = "0.3.30"
futures = "0.3.30"
bytes = "1.7.1"
futures = { version = "0.3.30", default-features = false }
bytes = { version = "1.7", default-features = false }
tokio-util = { version = "0.7.12", features = ["io"] }
tokio-stream = { version = "0.1.16", features = ["io-util"] }
pyo3 = { version = "0.22.5" }
python3-dll-a = "0.2.10"
bitflags = "2.6"
deno_ast = { version = "0.43.3", default-features = false, features = ["transpiling"] }
wasmtime = "26"
wasmtime-wasi = "26"
wasi-common = "26"
wasmtime-wasi-http = "26"
wasmparser = { version = "0.219", default-features = false }
wit-component = { version = "0.219", default-features = false }
wasi-preview1-component-adapter-provider = { version = "25", default-features = false }
async-stream = "0.3.6"
wit-bindgen = { version = "0.34" , features = ["realloc"] }
wit-bindgen-wrpc = { version = "0.9", default-features = false }
wrpc-runtime-wasmtime = { version = "0.25", default-features = false }
wrpc-transport = { version = "0.28", default-features = false, features = ["net"]}
hyper = "1.4"
once_cell = "1.19"

lyric = { version = "0.1.4", path = "crates/lyric", default-features = false }
lyric-utils = { version = "0.1.4", path = "crates/lyric-utils", default-features = false }
lyric-rpc = { version = "0.1.4", path = "crates/lyric-rpc", default-features = false }
lyric-wasm-runtime = { version = "0.1.4", path = "crates/lyric-wasm-runtime", default-features = false }
lyric-py = { version = "0.1.4", path = "bindings/python/lyric-py", default-features = false }
lyric-py = { version = "0.1.4", path = "bindings/python/lyric-py", default-features = false }
5 changes: 4 additions & 1 deletion bindings/javascript/lyric-js-worker/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,7 @@ generated-parser
.antlr

# wasm
*.wasm
*.wasm
bundle/
dist/
comp/
2 changes: 1 addition & 1 deletion bindings/javascript/lyric-js-worker/componentize.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { resolve } from 'node:path';

const enableAot = process.env.ENABLE_AOT === '1'

const jsSource = await readFile('worker.js', 'utf8');
const jsSource = await readFile('bundle/index.bundled.js', 'utf8');

const { component } = await componentize(jsSource, {
witPath: resolve('./wit'),
Expand Down
Loading

0 comments on commit acea154

Please sign in to comment.