3 releases
0.1.2-3ff410c | Apr 10, 2024 |
---|---|
0.1.1 | Aug 31, 2023 |
0.1.0 | Aug 31, 2023 |
#496 in Asynchronous
152 downloads per month
Used in bevy_mod_pies_spacetrader…
480KB
11K
SLoC
Rust SpaceTraders API Client
This is an async Rust client for the SpaceTraders API game. This client is not official as are all client libraries for the game.
The APIs and models are generated from the game specification using the OpenAPI Generator. The generation template has been rewritten from scratch to provide a high quality client.
Please see the getting started guide for the game. The demo
example in this repository shows using the crate to implement the steps shown in the "New game" section.
Other Clients
Here is a list of other SpaceTraders API clients in Rust.
spacedust
uses the same tool to generate the client. However, it uses the default Rust template for the generator, which results in non-standard Rust code. It does use a version of the specification with more documentation.bevy_mod_pies_spacetraders_api
is a client specifically for thebevy
game engine.spacetraders
looks to be abandoned.
Minimum Supported Rust Version
Requires Rust 1.64.0.
This crate follows the "Latest stable Rust" policy. The listed MSRV won't be changed unless needed. However, updating the MSRV anywhere up to the latest stable at time of release is allowed.
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in space-traders by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Dependencies
~4–16MB
~221K SLoC