https://github.com/leakingtapan/buildkite-rs
A Rust library for the Buildkite API
https://github.com/leakingtapan/buildkite-rs
api buildkite rust
Last synced: about 1 month ago
JSON representation
A Rust library for the Buildkite API
- Host: GitHub
- URL: https://github.com/leakingtapan/buildkite-rs
- Owner: leakingtapan
- License: apache-2.0
- Created: 2021-01-16T20:22:42.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-06-13T06:00:14.000Z (4 months ago)
- Last Synced: 2025-08-15T15:54:16.464Z (about 2 months ago)
- Topics: api, buildkite, rust
- Language: Rust
- Homepage:
- Size: 47.9 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A Rust library for Buildkite API
A Rust binding to the Buildkite V2 API.## Getting Started
First, add following to `Cargo.toml`:
```toml
[dependencies]
buildkite = "0.1.0"
```
Then use the crate with:
```rust
use buildkite;fn main() {
let client = buildkite::client::Client::new("BUILDKITE_TOKEN");
}
```## Examples
### Organizations
```rust
// List Organizations
client
.organizations()
.list();// Get a sepcific organization
client
.organizations()
.get(org_name);
```### Builds
```rust
// List builds for a specific pipeline
client
.builds()
.list(org_name, pipeline_name);
```### Agents
```rust
// List agents
client
.agents()
.list(org_name)// Get agent
client
.agents()
.get(org_name, agent_id)```
## License
Licensed under Apache License, Version 2.0## TODOs
- [ ] list for paginated results
- [ ] custom buildkite error
- [ ] add user agent
- [ ] add marco to reduce boilerplated
- [ ] add unit tests
- [ ] add cancellation for each API