I made a big small breaking change to the screeps.toml 😓
My goal was to be able to deploy to different server environments with an arbitrary number of different configurations (MMO, PTR, seasonal, private servers), instead of just having copy and upload options in screeps.toml and needing to swap between configs for different servers/output directories.
default_deploy_mode switches to default_deploy_target, and each target (configured in a [targets.foo] section in toml) requires a mode, which is either upload or copy Now supports arbitrary additional 'modes' in addition to upload and copy - cargo screeps upload / cargo screeps copy are now shortcuts for cargo screeps deploy -m upload / cargo screeps deploy -m copy
branch is no longer required, and defaults to default
BREAKING: ptr option removed for uploads, now using prefix which should be set to the API prefix path, ptr for PTR and season for seasonal
BREAKING: port/ssl defaults changed to 443/true at all times instead of SSL for screeps.com and plaintext for other hosts
Global build options can be optionally overwritten by a [mode.build] section
Crate features sets activated in the cargo-web build step can be configured in build configurations, allowing for conditionally compiled crate features which are only used on certain targets
Still todo if this seems like a decent approach:
[x] changelog
[x] readme
[x] deserialize of Authentication::Basic variant not working quite right
I made a
bigsmall breaking change to the screeps.toml 😓My goal was to be able to deploy to different server environments with an arbitrary number of different configurations (MMO, PTR, seasonal, private servers), instead of just having
copy
andupload
options in screeps.toml and needing to swap between configs for different servers/output directories.Now supports arbitrary additional 'modes' in addition todefault_deploy_mode
switches todefault_deploy_target
, and each target (configured in a[targets.foo]
section in toml) requires amode
, which is eitherupload
orcopy
upload
andcopy
-cargo screeps upload
/cargo screeps copy
are now shortcuts forcargo screeps deploy -m upload
/cargo screeps deploy -m copy
branch
is no longer required, and defaults todefault
ptr
option removed for uploads, now usingprefix
which should be set to the API prefix path,ptr
for PTR andseason
for seasonal443
/true
at all times instead of SSL forscreeps.com
and plaintext for other hostsbuild
options can be optionally overwritten by a[mode.build]
sectionStill todo if this seems like a decent approach:
Authentication::Basic
variant not working quite right