Canton Ledger API Rust Client
Rust client for the Canton JSON Ledger API, generated from the OpenAPI spec using openapi-generator with manual adjustments.
- Canton API version: 3.4.12
- Minimum Canton version: 3.4.12
- Package version: 3.4.12-0.1.0
Installation
Add to your Cargo.toml:
= "3.4.12-0.1.0"
Or use a path dependency:
= { = "../canton-api-client" }
Regenerating
The client is generated from openapi-spec.yaml. To regenerate:
After regenerating, reapply manual changes:
- Remove
post_v2_packages- Remove thePostV2PackagesErrorenum andpost_v2_packages()function fromsrc/apis/default_api.rs(deprecated endpoint, use/v2/darsinstead) - Update User-Agent - In
src/apis/configuration.rs, change the defaultuser_agentto"CantonAPI/rust" - Update
Cargo.toml- Set version to<api-version>-0.1.x, author torobert@dlc.link, description to"Canton Ledger API rust client"
Documentation