1#![cfg_attr(
22 not(any(target_os = "macos", target_os = "windows")),
23 forbid(unsafe_code)
24)]
25#![cfg_attr(
28 target_os = "macos",
29 allow(
30 clippy::redundant_closure_for_method_calls,
31 clippy::needless_pass_by_value,
32 clippy::type_complexity,
33 clippy::manual_map,
34 clippy::uninlined_format_args,
35 clippy::map_unwrap_or
36 )
37)]
38#![cfg_attr(any(target_os = "macos", target_os = "windows"), allow(unsafe_code))]
40
41pub mod backend;
42pub mod engine;
43pub mod inspector;
44pub mod runtime;
45
46#[cfg(any(test, feature = "test-support"))]
47pub mod test_support;
48
49pub use backend::auth::normalize as normalize_auth_blob;
50pub use engine::{
51 ActTarget, Action, AuthBlob, CaptureScope, DataStore, Dialog, DialogAnswer, Download,
52 DownloadEntry, DownloadSource, Engine, EngineCapabilities, EngineError, EngineResult,
53 LayoutBox, PageHandle, Popup, PopupEvent, PopupFeed, RecFrame, Viewport, WaitCondition,
54 DIALOG_TIMEOUT,
55};
56pub use inspector::{
57 ConsoleEntry, ConsoleLevel, Header, NetworkEntry, NetworkStatus, RequestDetail, RingBuffer,
58};
59pub use runtime::EngineRuntime;
60
61#[must_use]
63pub fn version() -> &'static str {
64 env!("CARGO_PKG_VERSION")
65}
66
67#[cfg(test)]
68mod tests {
69 use super::version;
70
71 #[test]
72 fn version_matches_cargo_pkg_version() {
73 assert_eq!(version(), env!("CARGO_PKG_VERSION"));
74 }
75}