servo-fetch 0.6.0

Fetch, render, and extract web content with an embedded Servo browser engine. No Chrome required.
Documentation
//! Fetch, render, and extract web content with an embedded Servo browser engine.
//! No Chrome, no containers, no external processes.
//!
//! ```no_run
//! let md = servo_fetch::markdown("https://example.com")?;
//! # Ok::<(), servo_fetch::Error>(())
//! ```

#![deny(unsafe_code)]

pub mod engine;
pub mod error;
pub mod extract;
pub mod layout;
pub mod sanitize;

pub(crate) mod bridge;
pub(crate) mod crawl;
pub(crate) mod net;
pub(crate) mod pdf;
pub(crate) mod runtime;
pub(crate) mod screenshot;

pub use engine::{
    ConsoleLevel, ConsoleMessage, CrawlOptions, CrawlResult, CrawlStatus, FetchOptions, Page, crawl, crawl_each,
    extract_json, fetch, markdown, text, validate_url,
};
pub use error::{Error, Result};