-
Notifications
You must be signed in to change notification settings - Fork 0
Rust Client
Leonard Ramminger edited this page Aug 31, 2026
·
1 revision
Use YcallrClient when building Rust applications directly on the core library (not through FFI).
ycallr-core = { version = "0.1", features = ["client"] }For local development:
ycallr-core = { path = "../ycallr-core", features = ["client"] }- Load a compiled profile (
load_installed_profileorload_from_proto_bytes). - Build a client with
YcallrClient::builder()(env mode, auth overrides, base URL). - Call
client.call(command_path, params, optional_body).
Request preparation lives in call_engine/. It builds PreparedHttpRequest with:
- Resolved URL and path parameters
- Headers, query, and auth
- Body encoding (JSON, form, multipart, raw)
- Response message templates (no network I/O)
Use test-utils and MockApiClient for in-memory tests without network access.
HTTP integration tests use mockito against the real reqwest stack.
Overview
Profiles
Integration
Project