feat: Add demo packages and some docs #3
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This change proposes a candidate code workspace layout, with considerations for both Rust and TypeScript language toolchains.
I started with the goal of showing how a TypeScript workspace might look using
wireit. However, I was also reading about various code isolation topics at the time, and I was sniped by the current state of Wasm Components. In a fit of inspiration, I added a Rust package to the mix and showed how it can be run as a native binary or compiled as a Wasm Component and run in Deno and also the web.Check out
./scripts/component-demo.shto see the whole thing in action!A lot of this was thrown together in haste, so please do not consider anything "finished" or "polished" or anything to that effect. Do note that most of the "changed lines" are in the lock files, though.