diff --git a/screeps-async-macros/CHANGELOG.md b/screeps-async-macros/CHANGELOG.md new file mode 100644 index 0000000..b55282d --- /dev/null +++ b/screeps-async-macros/CHANGELOG.md @@ -0,0 +1,18 @@ +# Changelog +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased] + +## [0.1.0](https://github.com/rustyscreeps/screeps-async/releases/tag/screeps-async-macros-v0.1.0) - 2024-03-02 + +### Added +- Add #[main] macro to automatically call ScreepsRuntime.run() + +### Other +- Prep project for transfer to rustyscreeps +- Refactor API to simplify usage +- Refactor runtime to use async_task crate +- Update docs for #[main] and add examples diff --git a/screeps-async/CHANGELOG.md b/screeps-async/CHANGELOG.md new file mode 100644 index 0000000..3002ff5 --- /dev/null +++ b/screeps-async/CHANGELOG.md @@ -0,0 +1,33 @@ +# Changelog +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased] + +## [0.1.0](https://github.com/rustyscreeps/screeps-async/releases/tag/screeps-async-v0.1.0) - 2024-03-02 + +### Added +- *(spawn)* `spawn` now returns a `JobHandle` that can be used to get the output of spawned futures +- Return an error when we run out of time in a given tick +- Add `yield_now` helper as replacement for delay(0) +- Add #[main] macro to automatically call ScreepsRuntime.run() + +### Fixed +- *(each_tick!)* Incorrect path to `yield_tick()` + +### Other +- Prep project for transfer to rustyscreeps +- Rename `delay` to `delay_ticks` to be more clear +- Refactor API to simplify usage +- Refactor runtime to use async_task crate +- Update docs for #[main] and add examples +- Fix each_tick! example +- Run cargo fmt +- Refactor module structure more and add missing docs +- Add some docs and Cargo.toml metadata +- Refactor task polling/submission slightly to be less error-prone +- Refactor module structure slightly +- Add `each_tick!` helper macro +- Implement basic tick-aware async runtime diff --git a/screeps-async/Cargo.toml b/screeps-async/Cargo.toml index 8d51a24..11bcedd 100644 --- a/screeps-async/Cargo.toml +++ b/screeps-async/Cargo.toml @@ -16,4 +16,4 @@ flume = { version = "0.11", default-features = false } screeps-game-api = "0.20.1" [dev-dependencies] -rstest = "0.18.2" \ No newline at end of file +rstest = "0.18.2"