#![cfg_attr(
not(any(target_os = "macos", target_os = "windows")),
forbid(unsafe_code)
)]
#![cfg_attr(
target_os = "macos",
allow(
clippy::redundant_closure_for_method_calls,
clippy::needless_pass_by_value,
clippy::type_complexity,
clippy::manual_map,
clippy::uninlined_format_args,
clippy::map_unwrap_or
)
)]
#![cfg_attr(any(target_os = "macos", target_os = "windows"), allow(unsafe_code))]
pub mod backend;
pub mod engine;
pub mod inspector;
pub mod runtime;
#[cfg(any(test, feature = "test-support"))]
pub mod test_support;
pub use engine::{
ActTarget, Action, AuthBlob, CaptureScope, Engine, EngineCapabilities, EngineError,
EngineResult, LayoutBox, PageHandle, Viewport, WaitCondition,
};
pub use inspector::{
ConsoleEntry, ConsoleLevel, Header, NetworkEntry, NetworkStatus, RequestDetail, RingBuffer,
};
pub use runtime::EngineRuntime;
#[must_use]
pub fn version() -> &'static str {
env!("CARGO_PKG_VERSION")
}
#[cfg(test)]
mod tests {
use super::version;
#[test]
fn version_matches_cargo_pkg_version() {
assert_eq!(version(), env!("CARGO_PKG_VERSION"));
}
}