-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
The build.rs script heavily relies on by C++, which is OK (not ideal) but doesn't seem to be configured correctly for the wasm architecture.
If you attempt to build rive-rs for wasm (at least on MacOS M1), you'll end up with this:
cargo build --target wasm32-unknown-unknownOutput:
cargo:warning=In file included from ../submodules/rive-cpp/include/rive/animation/animation.hpp:3:
cargo:warning=../submodules/rive-cpp/include/rive/generated/animation/animation_base.hpp:3:10: fatal error: 'string' file not found
cargo:warning=#include <string>
cargo:warning= ^~~~~~~~
cargo:warning=1 error generated.I've tried adjusting the .includes in the build.rs but have been fighting uphill battles.
Wondering if there's a priority to support wasm32 or have a pure-rust parser akin to rive-cpp? I would imagine this (web) is the primary supported for rive, so this should probably be considered a bug.
Metadata
Metadata
Assignees
Labels
No labels