paxdotdev / pax

User interface engine with an integrated vector design tool, built in Rust
https://www.pax.dev/
Apache License 2.0
465 stars 23 forks source link

add pax_kit crate; support non-designtime builds #228

Closed zackbrown closed 2 months ago

zackbrown commented 2 months ago

Also clean up userland cargo.toml config and import surface area

This introduces engine_import_path, a necessary parameter for codegen — Previously we hard-coded pax_engine via codegen; this breaks whenpax_kit is the entrypoint instead. We need to support both, so this parameterizes that symbol, allowing pax-std and pax-designer to override. (the two canonical crates where we use pax_engine instead of use pax_kit)

See https://github.com/paxengine/pax/commit/730510f41aae1949d7f8ec7b452453a3601f89a2 for example of toggling designer on/off; just a one-liner in the Cargo.toml if using pax-cli instead of the ./pax helper script.