Something went wrong. Try again.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114[package]name = "atproto-attestation"version = "0.15.0-rc.7"description = "AT Protocol attestation utilities for creating and verifying record signatures"readme = "README.md"homepage = "https://tangled.org/ngerakines.me/atproto-crates"documentation = "https://docs.rs/atproto-attestation"edition.workspace = truerust-version.workspace = truerepository.workspace = trueauthors.workspace = truelicense.workspace = truekeywords = ["atproto", "attestation", "signature", "bluesky"]categories = ["cryptography", "api-bindings"]
[[bin]]name = "atproto-attestation-sign"test = falsebench = falsedoc = truerequired-features = ["clap", "tokio"]
[[bin]]name = "atproto-attestation-verify"# Its unit tests run: the unpinned proof check cannot be reached end to end# without a PDS on an https:// endpoint with a public name, which a test can't# stand up.bench = falsedoc = truerequired-features = ["clap", "tokio"]
[dependencies]# Declared rather than inherited from the workspace, because Cargo refuses# `default-features = false` on an inherited dependency -- and defaults off is# the point. Signing, inline verification and the CID work need this crate's# keys, its DID document model and its traits; none of them needs its network# half. The version has to be repeated here; a release bump has to touch it.atproto-identity = { version = "0.15.0-rc.7", path = "../atproto-identity", default-features = false }atproto-record.workspace = trueanyhow.workspace = truebase64.workspace = true# Declared rather than inherited, because Cargo refuses# `default-features = false` on a workspace-inherited dependency -- and# defaults off is the point: this crate encodes and hashes, and never reads a# CAR, so it has no use for `atproto-dasl`'s async half. The version has to be# repeated here; a release bump has to touch it.atproto-dasl = { version = "0.15.0-rc.7", path = "../atproto-dasl", default-features = false }serde.workspace = true# No `preserve_order`. Both CID encodings sort map keys canonically, so key# order cannot reach a signature -- and the feature is unified across a build,# so enabling it here changed `serde_json::Map` ordering for every crate in a# consumer's program, including code with nothing to do with attestations.serde_json.workspace = truethiserror.workspace = true
k256 = { workspace = true, features = ["ecdsa", "std"] }p256 = { workspace = true, features = ["ecdsa", "std"] }
async-trait = { workspace = true, optional = true }# The HTTP record resolver and the XRPC calls the two binaries make. The# library needs only the `RecordResolver` trait, which is in `atproto-record`.atproto-client = { workspace = true, optional = true }clap = { workspace = true, optional = true }reqwest = { workspace = true, optional = true }tokio = { workspace = true, optional = true }
[dev-dependencies]async-trait.workspace = truechrono.workspace = truetokio = { workspace = true, features = ["macros", "rt"] }
[features]# Nothing on by default. The library signs, verifies inline signatures and# computes content CIDs, and none of that does I/O: a remote attestation is# verified through the `RecordResolver` trait, whose implementations belong to# the caller. `atproto-record --test lean_dependencies` holds that.default = []clap = ["dep:clap"]# The async half, which is the two binaries: an HTTP client, the XRPC calls# they make, and the identity resolution behind them.tokio = [ "dep:tokio", "dep:reqwest", "dep:async-trait", "dep:atproto-client", "atproto-identity/hickory-dns",]
# docs.rs builds default features only, so every feature-gated module and item# would be missing from the rendered documentation entirely. `all-features`# makes them appear.## No `#![cfg_attr(docsrs, feature(doc_auto_cfg))]` companion in `src/lib.rs`,# which is the line most crates carry next to this block: that feature was# removed in 1.92.0 and is now `error[E0557]` on the nightly docs.rs builds# with, so adding it would replace a missing label with a missing page.## Its successor `feature(doc_cfg)` does restore the "Available on crate feature# ..." labels and still works, but it is unstable, and this workspace has# decided not to adopt it -- see atproto-crates#aqj4. The trade is bad in one# direction: an unstable feature that goes the way `doc_auto_cfg` just went# fails the docs.rs build outright for an already-published version, which no# edit can fix, while the labels it buys are something an item's own docs can# state in prose ("Requires the `resolve` feature") on every toolchain.## `--cfg docsrs` is inert today, and is kept as the conventional hook that# successor and any `#[cfg(docsrs)]` doc-only item would need.[package.metadata.docs.rs]all-features = truerustdoc-args = ["--cfg", "docsrs"]
[lints]workspace = true