Skip to main content

aeo_protocol/
lib.rs

1//! Rust SDK for the AEO Protocol v0.1.
2//!
3//! Parse, build, validate, and fetch AEO declaration documents.
4//!
5//! Specification: <https://github.com/mizcausevic-dev/aeo-protocol-spec>
6//!
7//! # Example
8//!
9//! ```no_run
10//! use aeo_protocol::{Document, fetch_well_known};
11//!
12//! let doc = fetch_well_known("https://mizcausevic-dev.github.io")?;
13//! println!("{}", doc.entity.name);
14//! # Ok::<(), aeo_protocol::AeoError>(())
15//! ```
16
17#![warn(missing_docs)]
18#![warn(clippy::all)]
19
20mod document;
21mod error;
22
23#[cfg(feature = "client")]
24mod client;
25
26pub use document::{
27    AnswerConstraints, Audit, AuditMode, Authority, CitationPreferences, Claim, Confidence,
28    Document, Entity, EntityType, Verification, VerificationType,
29};
30pub use error::AeoError;
31
32#[cfg(feature = "client")]
33pub use client::{fetch_well_known, well_known_url};
34
35/// The AEO Protocol version supported by this SDK.
36pub const PROTOCOL_VERSION: &str = "0.1";
37
38/// The version of this SDK crate.
39pub const SDK_VERSION: &str = env!("CARGO_PKG_VERSION");