Skip to content

Using the Libraries

Mehrn0ush edited this page Nov 22, 2026 · 1 revision

Using the Libraries

Crate Role
libtea-core TEI, version negotiation, models, checksums, destination rules, lock files, PURL, vers, CLE. No network code.
libtea-client Async client (tokio, reqwest, rustls). Re-exports libtea-core as libtea_client::core.
[dependencies]
libtea-client = "0.2.0"
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
  • API documentation: docs.rs/libtea-client and docs.rs/libtea-core.
  • A complete example that resolves a TEI, downloads a format and checks it is in the README; it is compiled as a doctest.
  • Feature signature-keys adds KeyVerifier: raw detached signatures over the artifact bytes, under Ed25519 or ECDSA P-256 public keys (via ring).
  • Minimum supported Rust version: 1.89.
  • SemVer is checked by cargo semver-checks in CI. Items marked Experimental (HTTP cache, lock file, signature verification and format detection, purl, vers, lifecycle, pep440) can change in a 0.x minor release.

Design and internals: architecture.md, auth.md, security.md.

Clone this wiki locally