Publishing
Version, publish game crates, and stay compatible.
Prepare a release
- License: Stacks Wars Custom License (
license-file = "LICENSE"). Cargo.toml: description, repository, readme, keywords;includesource + LICENSE (+ assets).- Depend on compatible
sw-plugin/sw-domainversions (semver). - Set production
dev_id. cargo publish --dry-runfrom the game crate.
Versioning
- Breaking plugin/domain changes → bump game major when you need incompatible APIs.
- Platform published
sw-domain/sw-plugin1.0.x; stay on the same major for drop-in server upgrades. - Do not republish the same version on crates.io.
Publish
cd my-game
cargo publishCompatibility
- Keep
sw-plugin/sw-domainversions aligned with the server. - After publishing, add the crate to
sw-serverand runcargo update. - Frontend
gameIdmust match the published factory id.