astrale-sharp / wasm-minimal-protocol

The Unlicense
44 stars 6 forks source link

Restructure project to allow inclusion in other projects #28

Closed Caellian closed 1 month ago

Caellian commented 1 month ago

Previous project structure forces use with

wasm-minimal-protocol = { git = "https://github.com/astrale-sharp/wasm-minimal-protocol" }

Now the project can be added to other projects with workspaces as a submodule:

wasm-minimal-protocol = { path = "./vendor/wasm-minimal-protocol/crates/macro" }

Because of #27, this is necessary to avoid having to clone the same repository twice during builds - once from cargo the package using it, and once from external tool that builds and runs wasi-stub.

astrale-sharp commented 1 month ago

Looks good to me, thanks!