- Fix crash when specifying config file path on command line
- Fix merging of
extra_options
configuration inbuild
section - Fix merging priority of
build
section options - Update
toml
to 0.8 - Update
wasm-pack
to 0.12
- Update
base64
to 0.21 - Update
regex
to 1.7 - Update
clap
to 4 - Update
toml
to 0.7 - Update
wasm-pack
to 0.11 - Convert from
failure
toanyhow
for simpler error handling compatibility withwasm-pack
- Add logging output showing the percentage of the code size limit being consumed when uploading
- (Breaking) Replaced cargo-web functionality with wasm-pack; use 0.4.x release for stdweb-based crates!
- (Breaking) Remove
output_js_file
andoutput_wasm_file
build options which configured the related cargo-web features; addbuild_profile
andout_name
build options which configure related wasm-pack features. - (Breaking) Remove
features
build option, replacing with theextra_options
build option which can pass flags like--features=feature-name
or any other needed command line flags to wasm-pack. - (Breaking) Remove
initialization_header_file
deployment configuration option, replacing withinclude_files
option, which specifies which directories inside your working directory to include files from for deployment. - (Breaking) Remove
check
command, as it's not available under wasm-pack - usecargo check
. - Added support for building and deploying Screeps: Arena ES6 modules. Added new build config
option
build_mode
, which can be set to"arena"
or"world"
as appropriate for codebases for the different games. (Default mode isworld
to maintain compatibility with existing crates.)
- (Breaking) Remove
ptr
option from configuration, replaced withprefix
which can be set to a desired API URL prefix -prefix = "ptr"
replaces the functionality ofptr = true
- (Breaking) The default
port
is now 443 andssl
now defaults to true (previous default was HTTPS for screeps.com and HTTP for other hosts) - Added configuration for upload HTTP request timeout
http_timeout
(#26) branch
option is no longer required,"default"
is the default if none is configured- Options from the
[build]
section can be overridden for any individual mode in[modename.build]
[build]
options now support specifyingfeatures
, a list of crate features to be passed to cargo-web
cargo-screeps
no longer requires installing cargo-web
, so if you've
previously installed both, you can now freely remove the latter. It won't hurt
to have it installed, but cargo-screeps
will not use it.
- Fix
cargo screeps check
(#144) - Removed encompassing cargo workspace (#180)
- Update
cargo-screeps
to more rust 2018 idioms (#182) - Depend directly on
cargo-web
(#183)
- Add support for using Screeps auth tokens instead of username/password ((#137), thanks @npfund!)
- Support cargo-web version 0.6.25 (#138, thanks @babariviere!)
- Fix Cargo.toml configuration for uploading.
- Update to
reqwest
0.9 - Change default WASM module initialization and allow projects to override module initialization via configuration (see docs/initialiation-header.md)
- Update expected format to match
cargo-web
version0.6.19
- Fix subcommand documentation in README
- (Breaking) Move upload configuration into an '[upload]' config section
- Add copy deployment option with '[copy]' config section.
- Rework commands so 'cargo screeps --upload' and '--build' are now 'cargo screeps upload' and 'cargo screeps build'.
- Add 'cargo screeps deploy' command which uploads or copies depending on 'default_deploy_mode' config option.
- Add warnings for invalid configuration options. This is primarily to help with migration, but it can also help catch typos.
- Add '-c' cli option to load screeps.toml configuration besides 'screeps.toml'.
Thanks to @jechase for contributing to this cargo-screeps release.
- Add creation of '__initialize' function for easy re-initalization of WASM module to cargo-screeps.
- Fix mistake in cargo-web prefix test.
- Update to cargo-web version 0.6.15 output format.
- Update to match cargo-web version 0.6.12.
- Fix bug with path joins not being cross-platform compatible.
- Fix bug where new projects could not build due to an OS error not finding the output file.
- Remove dependency on nightly rust.
- Switch to using
console_error
rather than trying to polyfillconsole.error
sinceconsole
prototype is changed every tick in screeps.
- Put author/version on subcommand for correct information.
- Update to match latest 'cargo web' generated format.
- Add support for custom output JS/WASM files to
cargo-screeps
- Support for crate names with dashes
- Initial release