🏰 posturn 🎮
Build turn-based games with async Rust
This crate offers a simple way to create complex turn-based games. Instead of modeling the game as a monolithic state
machine with transitions, why not write a Coroutine?
📃 Usage
To use posturn, simply add this to your Cargo.toml:
[]
= "0.1.1"
Alternatively, run the following from your crate root:
cargo add posturn@0.1.1
⚠️ Compatibility
This crate currently depends on genawaiter to provide a stable
implementation of Rust coroutines. Once the Coroutine trait
has been stabilized (RFC 2033), future versions of posturn may move
in the direction of using the std implementation, gated by a feature flag.
For now, the dependency on genawaiter is required. If you need std support for a nightly project, please see
this issue or open a PR on GitHub.
⚖️ License
All Rust code is licensed under the MIT license.
Various other files (e.g. this README) are licensed under one of the following:
posturn aims to be REUSE compliant. The SPDX-License-Identifier at the top of each file shows which license is associated with it.