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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
//! # halldyll-robots
//!
//! RFC 9309 compliant robots.txt parser and checker.
//!
//! ## Features
//!
//! - **RFC 9309 Compliance**: Full support for the robots.txt standard
//! - **Unavailable vs Unreachable**: Proper handling per RFC (4xx = allow, 5xx = deny)
//! - **Safe Mode**: Optional stricter handling of 401/403 as deny
//! - **Conditional GET**: ETag/Last-Modified support for bandwidth savings
//! - **Request-rate**: Non-standard but common directive support
//! - **Caching**: In-memory cache with optional file persistence
//! - **Pattern Matching**: Wildcards (*), end anchors ($), percent-encoding
//! - **UTF-8 BOM**: Automatic stripping of BOM prefix
//! - **Observability**: Detailed logging and statistics with min/max/avg metrics
//!
//! ## Example
//!
//! ```rust,no_run
//! use halldyll_robots::{RobotsChecker, RobotsConfig};
//! use url::Url;
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let config = RobotsConfig::default();
//! let checker = RobotsChecker::new(config);
//!
//! let url = Url::parse("https://example.com/some/path")?;
//! let decision = checker.is_allowed(&url).await;
//!
//! if decision.allowed {
//! println!("URL is allowed");
//! } else {
//! println!("URL is blocked: {:?}", decision.reason);
//! }
//!
//! Ok(())
//! }
//! ```
// ============================================================================
// Modules
// ============================================================================
// ============================================================================
// Re-exports
// ============================================================================
pub use ;
pub use ;
pub use ;
pub use RobotsMatcher;
pub use RobotsParser;
pub use ;