| Crates.io | nomad-rs-api |
| lib.rs | nomad-rs-api |
| version | 0.0.1-alpha.2 |
| created_at | 2025-10-19 15:44:25.540875+00 |
| updated_at | 2025-10-27 20:48:23.068149+00 |
| description | Provides an ergonomic, type-safe interface for interacting with the HashiCorp Nomad API (https://developer.hashicorp.com/nomad) |
| homepage | |
| repository | https://github.com/rasorp/nomad-rs-api |
| max_upload_size | |
| id | 1890561 |
| size | 157,644 |
The Nomad Rust API is an experimental project that provides an ergonomic, type-safe interface for interacting with the HashiCorp Nomad API using Rust.
⚠️ Status: This project is in an early experimental stage. Expect breaking changes, incomplete endpoints, and evolving design patterns as we iterate.
The client can be configured automatically using environment variabeles:
use nomad_rs_api::{Config, Nomad};
let client = Nomad::new(Config::from_env());
Alternatively, you can configure the client manually:
let config = Config {
address: "http://localhost:4646".to_string(),
token: None,
..Default::default()
};
let client = Nomad::new(config);
The query and write options can be easily built before making a request:
use nomad_rs_api::{option};
let query_opts = option::QueryOptions::new()
.with_namespace("platform".to_string())
.with_auth_token("auth_token".to_string());
let write_opts = option::WriteOptions::new()
.with_namespace("platform".to_string())
.with_auth_token("auth_token".to_string());