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
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
target
.wireit
node_modules
dist
313 changes: 313 additions & 0 deletions Cargo.lock

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

20 changes: 20 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[workspace]
members = [
"rust/example-crate",
]

# See: https://github.com/rust-lang/rust/issues/90148#issuecomment-949194352
resolver = "2"

[workspace.dependencies]
js-sys = { version = "0.3" }
tracing = { version = "0.1" }
tracing-subscriber = { version = "0.3", features = ["env-filter", "tracing-log", "json"] }
tracing-web = { version = "0.1" }
wasm-bindgen = { version = "0.2" }
web-sys = { version = "0.3" }
wit-bindgen = { version = "0.24" }

[profile.release]
opt-level = 'z'
lto = true
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Common Labs

Radioactive experiments. Turn back! You will find no API stability here.

![A loom, by Midjourney](./docs/images/loom.jpg)

## Overview

Web, Node.js an Deno packages live in [./typescript](./typescript)

Rust crates live in [./rust](./rust)

Refer to [./docs/tools.md](./docs/tools.md) for tool installation.

Run [./scripts/component-demo.sh](./scripts/component-demo.sh) to see some fun Rust / Deno / Web tooling interop in action.
Binary file added docs/images/loom.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions docs/tools.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
## Toolchains / runtimes

- [Rust][rustup]
- [Deno][deno]
- [Node.js][nvm]

### Rust toolchain variations

`rustup target add wasm32-wasi`

## Other tools

- [wasm-tools][wasm-tools]: `cargo install wasm-tools`
- [jco][jco]: `npm install @bytecodealliance/jco`

[rustup]: https://rustup.rs/
[deno]: https://docs.deno.com/runtime/manual/getting_started/installation
[nvm]: https://github.com/nvm-sh/nvm?tab=readme-ov-file#installing-and-updating
[wasm-tools]: https://github.com/bytecodealliance/wasm-tools
[jco]: https://github.com/bytecodealliance/jco
4 changes: 4 additions & 0 deletions rust/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Rust

This workspace contains Rust that at times may run on native targets, the web, Deno, Node.js or arbitrary Wasm runtimes.

Loading