polywrap / wrap-cli

Used to create, build, and integrate wraps.
https://polywrap.io
MIT License
170 stars 52 forks source link

Bug: We should make sure multiple rust-wraps work within a workspace #1876

Open krisbitney opened 1 year ago

krisbitney commented 1 year ago

See https://discord.com/channels/796821176743362611/1084870441983803512/1145763806371401748

krisbitney commented 1 year ago

After researching this issue, it doesn't seem possible to support Rust workspaces without significant effort. It is not currently possible to override the behavior of cargo build.

Rust build scripts allow for preprocessing, but can not stop normal compilation (which will fail). A custom Rust target cannot be used to replace compilation with a custom polywrap build invocation, either.