Expand description
Client library for cc.me.
Mirrors the canonical JavaScript implementation in client/js/index.js and
follows the wire protocol described in client/PROTOCOL.md. The Rust server
in src/main.rs is the source of truth for the wire format; the crypto
crates here are pinned to the exact versions the server locks so the
sealed-box decrypt path interoperates with the server’s PublicKey::seal.
Structs§
- Batch
Response - Response from ack/release.
- CcMe
Client - A client bound to a single private key and base URL.
- Delivery
- A decrypted delivery (the captured HTTP request).
- Delivery
Response - Response from peek/claim: the count, decrypted deliveries, and (peek) cursor.
- Header
- A single header from a decrypted delivery.
- List
Options - Options for listing deliveries (peek/claim).
Enums§
- Error
- Errors surfaced by the client.
Constants§
- DEFAULT_
BASE_ URL - Default cc.me base URL.
Functions§
- create_
alias - Create (or look up) an alias:
POST {base}/cwith{"at": target}→ returns the alias URL. Idempotent. No auth. - private_
key - Load or create the private key.
- trampoline_
url - Build the trampoline URL:
{base}/?at={target}plus any extra params.
Type Aliases§
- Result
- Convenience result alias.