oicp-kit

Install

Adding the crate, choosing features, and what each one pulls in.

On this page
cargo add oicp-kit

Default features are cpo, emp and transport: the wire model and the addressing, with no async runtime and no HTTP client.

Features

FeaturePulls inFor
cpo—the CPO half of the wire model
emp—the EMP half
transporthttpthe endpoint table, paging, error mapping
clientreqwest, tokio, rustls, tracingtalking to Hubject
serveraxum, tower, tokiothe half Hubject calls
sync—the delta engine and the push planner
eichrecht—calibration-law types and CDR pre-flight
testkit—samples, MockHubject, onboarding scenarios
schemaschemarsJsonSchema for every wire type
cliclap + fullthe oicp binary

full turns on everything except the CLI.

A typical CPO:

oicp-kit = { version = "0.1", features = ["client", "server", "sync", "eichrecht"] }

A typical EMP:

oicp-kit = { version = "0.1", features = ["client", "server", "sync"] }

Add testkit as a dev-dependency either way — it is how you test without onboarding:

[dev-dependencies]
oicp-kit = { version = "0.1", features = ["testkit"] }

The CLI

cargo install oicp-kit --features cli
oicp id 'DE*AB7*E840*6487'

Minimum supported Rust

1.88, checked in CI on every push. The crate's own code needs only edition 2024 (1.85); the floor comes from bon, darling and time. Raising it is a minor version bump.

Improve this page on GitHub