Skip to main content

captcha_sdk/
lib.rs

1//! Unified, provider-independent types for server-side CAPTCHA verification.
2//!
3//! Provider adapters are feature-gated. The initial `0.1.0` scaffold defines
4//! their configuration surfaces; HTTP verification will be added separately.
5
6mod credential;
7mod error;
8mod provider;
9mod provider_id;
10mod request;
11mod response;
12mod token;
13
14pub mod providers;
15
16pub use error::{VerificationError, VerificationErrorKind};
17pub use provider::{CaptchaVerifier, VerificationFuture};
18pub use provider_id::{
19    InvalidProviderId, MAX_PROVIDER_ID_LEN, MAX_PROVIDER_ID_SEGMENT_LEN, ProviderId,
20};
21pub use request::VerificationRequest;
22pub use response::{FailureReason, VerificationResult};
23pub use token::{CaptchaToken, CaptchaTokenError, MAX_CAPTCHA_TOKEN_LEN};