Skip to main content

adk_payments/
lib.rs

1#![cfg_attr(docsrs, feature(doc_cfg))]
2#![allow(clippy::result_large_err)]
3
4//! Protocol-neutral agentic commerce and payment orchestration for ADK-Rust.
5//!
6//! The initial crate scaffold tracks these protocol baselines:
7//! - ACP stable `2026-01-30`
8//! - ACP experimental extensions as an unreleased compatibility channel
9//! - AP2 `v0.1-alpha` as of `2026-03-22`
10//!
11//! # Example
12//!
13//! ```
14//! use adk_payments::{
15//!     ACP_DELEGATE_AUTH_BASELINE, ACP_EXPERIMENTAL_CHANNEL, ACP_STABLE_BASELINE,
16//!     AP2_ALPHA_BASELINE, AP2_ALPHA_BASELINE_DATE,
17//! };
18//!
19//! assert_eq!(ACP_STABLE_BASELINE, "2026-01-30");
20//! assert_eq!(ACP_EXPERIMENTAL_CHANNEL, "unreleased");
21//! assert_eq!(ACP_DELEGATE_AUTH_BASELINE, "2026-01-28");
22//! assert_eq!(AP2_ALPHA_BASELINE, "v0.1-alpha");
23//! assert_eq!(AP2_ALPHA_BASELINE_DATE, "2026-03-22");
24//! ```
25
26/// ACP stable protocol baseline supported by this crate.
27pub const ACP_STABLE_BASELINE: &str = "2026-01-30";
28
29/// ACP experimental compatibility channel supported behind `acp-experimental`.
30pub const ACP_EXPERIMENTAL_CHANNEL: &str = "unreleased";
31
32/// ACP experimental delegated-authentication baseline version.
33pub const ACP_DELEGATE_AUTH_BASELINE: &str = "2026-01-28";
34
35/// AP2 protocol baseline supported by this crate.
36pub const AP2_ALPHA_BASELINE: &str = "v0.1-alpha";
37
38/// Date of the AP2 alpha research baseline tracked by this crate.
39pub const AP2_ALPHA_BASELINE_DATE: &str = "2026-03-22";
40
41pub mod auth;
42pub mod domain;
43pub mod guardrail;
44pub mod journal;
45pub mod kernel;
46pub mod protocol;
47pub mod server;
48pub mod tools;