westyx-nexus. There is no custom registry - cargo resolves the crate directly from crates.io.
Install
Cargo.toml automatically. Alternatively, add it manually:
Requirements
- Rust 1.75 or newer
- Network access to
crates.io(or a mirror) for installation, and to<your-slug>.westyx.devat runtime
Dependencies
The SDK brings in a small, focused set of dependencies:
No async runtime (
tokio, async-std) is pulled in. The SDK is synchronous and works in any Rust program regardless of whether you use async or not.
Using alongside async runtimes
The SDK does not require an async runtime, but it works fine in async applications.NexusClient is Clone + Send + Sync, so you can pass clones into async tasks:
tokio::task::spawn_blocking:
get_config, get_flag, get_secret) complete in microseconds, so blocking the executor for those is usually acceptable.
Verifying installation
westyx-nexus does not appear, check your Cargo.toml for the correct spelling.
Verifying connectivity
Before writing any code, confirm your endpoint and API key work with a plaincurl:
configs, secrets, and flags. An HTTP 401 means the key is wrong; HTTP 404 means the slug is wrong.
To watch the live SSE stream:
event:resync arrive within a second. Press Ctrl+C to stop.
Troubleshooting
error[E0432]: unresolved import- ensure the dependency is inCargo.tomland you have runcargo buildorcargo checkat least once.could not find 'westyx-nexus' in the registry- check network access tocrates.io, or runcargo updateto refresh the index.- Compilation error on Rust < 1.75 - upgrade your toolchain:
rustup update stable.
