rustyscreeps / cargo-screeps

Build tool for deploying Rust WASM code to Screeps game servers
MIT License
25 stars 13 forks source link

Allow specifying default package to build to support cargo workspaces. #22

Closed Azaril closed 2 years ago

Azaril commented 4 years ago

This is change allows specifying a package to build as part of the 'cargo web' parameters.

This change allows cargo workspaces to function by targeting a specific package to build and process by cargo web. Cargo web currently supports targeting a package with the '--package' argument, this can now be set from the screeps.toml.

An additional fix is needed in cargo-web to make workspaces fully functional but this change remains compatible even before that is integrated: https://github.com/koute/cargo-web/pull/246

shanemadden commented 2 years ago

Integrated into #24 via the extra_options build setting.