1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! # TwoCaptcha Rust Library
//!
//! A Rust library for easy integration with the 2captcha captcha solving service.
//! This library allows you to solve various types of captchas including reCAPTCHA,
//! FunCaptcha, GeeTest, hCaptcha, and many others.
//!
//! ## Example
//!
//! ```no_run
//! use twocaptcha::{TwoCaptcha, TwoCaptchaConfig, RecaptchaVersion};
//! use std::collections::HashMap;
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let solver = TwoCaptcha::new("your_api_key".to_string(), TwoCaptchaConfig::default());
//!
//! // Solve a reCAPTCHA
//! let result = solver.recaptcha(
//! "site_key",
//! "https://example.com",
//! Some(RecaptchaVersion::V2),
//! Some(false), // enterprise
//! None, // additional params
//! ).await?;
//!
//! println!("Captcha solved: {}", result.code.unwrap_or_default());
//! Ok(())
//! }
//! ```
// Re-export main types
pub use ApiClient;
pub use ;
pub use ;
pub use ;
// Re-export commonly used traits
pub use SolverExceptions;