Skip to main content

Crate cc_me

Crate cc_me 

Source
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§

BatchResponse
Response from ack/release.
CcMeClient
A client bound to a single private key and base URL.
Delivery
A decrypted delivery (the captured HTTP request).
DeliveryResponse
Response from peek/claim: the count, decrypted deliveries, and (peek) cursor.
Header
A single header from a decrypted delivery.
ListOptions
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}/c with {"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.