2 releases
0.1.1 | Nov 24, 2024 |
---|---|
0.1.0 | Nov 24, 2024 |
#1664 in Web programming
226 downloads per month
Used in cloud-node-discovery
37KB
912 lines
upcloud-rust-sdk
Unofficial UpCloud API client for Rust.
Features
- Strongly typed API with builder patterns for request construction
- Async/await support using Tokio
- Environment variable based configuration
- Trait-based design for resource operations
Examples
See the following:
- Simple example: Create a server with a minimal set of options
- Advanced example: Create a server with two interfaces and poll until server is started
- List servers: List all servers and utilise label filtering
Structure
src/client.rs
: Client implementationsrc/resources/*
: Resource-specific codesrc/types/*
: Shared typessrc/constants.rs
: Constantssrc/error.rs
: Error handlingsrc/config.rs
: Configuration
TODO
- Add support to other resources than Cloud Servers
- Request/response serialisation/deserialisation improvements
- Error handling
- Documentation
- Release process
License
MIT
Dependencies
~7–18MB
~228K SLoC