spacedustrs
This is a rust API wrapper for https://spacetraders.io V2
Now generated by https://openapi-generator.tech/docs/generators/rust/
Includes patches for documentation missing from the main API docs
Quickstart
Use the following example to get started.
use get_my_agent;
use Configuration;
use register;
use ;
async
Generation Instructions
FIRST update the docs fork with the spacedust patches. You can just 'Sync Fork' from the github web UI unless there are merge conflicts (there haven't been so far)
Clone the project, including --recurse-submodules:
Ensure submodules are initialized and updated:
Clean the output directory:
Remake the directory:
Update your local image of openapitools/openapi-generator-cli:latest-release
Run the following command, which uses the openapi-generator-cli docker image to generate the client:
Copy the client-dist/src to src
Notice: For the moment, manually check that the content-length middleware fixes (cargo.toml dependencies async-trait and task-local-extensions, lib.rs mod middleware, src/middleware.rs, and src/apis/configuration.rs reqwest_middleware_builder) are not being reverted. You will probably need to use at minimum the following:
Todo: Create a better merge strategy - perhaps maintain the content-length-middleware branch and merge it into the local branch after generating a new client?
Update Cargo.toml with any new dependencies, update documentation, tick version, commit changes, and publish to cargo