Files
moli/moli-protocol/src/lib.rs
T
ldm0 53d16780d5 feat(pdf): render searchable PDFs with Krilla
Route CDP Page.printToPDF and CLI PDF dumps through an owned snapshot PDF
backend with embedded subset fonts and logical text cluster mappings.

Preserve print layout isolation, page selection, and bounded local raster
fallbacks. Pin Krilla to upstream Git and share its font parsing dependencies
with the existing rendering stack where version constraints allow.

Add PDF extraction, pagination, graphics, and print lifecycle regressions,
fixed font fixtures, and reader and CDP smoke checks.

Refs #279.
2026-10-12 21:33:26 +08:00

51 lines
2.3 KiB
Rust

//! Protocol-neutral automation owner and dispatch layer for Moli.
//!
//! This crate is being split away from the Chrome DevTools Protocol wire shape.
//! It still contains transitional CDP-named owner types, but protocol-specific
//! parsing and Chrome protocol metadata belong in
//! `moli-protocol-cdp`.
pub mod automation;
mod cdp_projection;
pub mod conn;
pub mod domains;
#[cfg(feature = "test-support")]
pub mod test_support;
#[cfg(test)]
pub mod testing;
pub mod version;
pub use automation::*;
pub use conn::{
AutomationCommandDispatchOutcome, BackgroundCommandResponsePayload, BackgroundProtocolEvent,
CdpCommandTaskStep, CdpConnection, CdpInitialStoragePartition, CdpRendererCommandAccess,
CdpRendererCommandReplacement, CdpRendererCommandReplayDispatch, CdpRendererOwnerTurnOutcome,
CdpSchedulerEvent, CdpTargetHostLifecycleDelta, CdpTargetHostLifecycleObserver, CdpTurnOutcome,
CommandDispatchContext, CommandResponseFlushContext, CommandResponseFlushPermit,
CompletedCdpCommandDispatch, CompletedDeferredMainDocumentLoadCompletion,
CompletedRuntimeProtocolMessageDispatch, DEFAULT_CDP_PAGE_TARGET_ID, DEFAULT_CDP_TAB_TARGET_ID,
DeferredMainDocumentLoadCompletionOutputAction,
DeferredMainDocumentLoadCompletionOutputInterest, DeferredMainDocumentLoadObservationId,
DeferredMainDocumentLoadPredecessorCandidate, DevToolsDocumentLifecycleWaitKey,
DevToolsDocumentLifecycleWaitState, DevToolsDocumentNavigationState,
DevToolsDocumentResidenceIdentity, DevToolsPageResidenceIdentity, ParsedCdpCommand,
PendingCdpCommandDispatch, PendingDeferredMainDocumentLoadCompletion,
PendingRuntimeProtocolMessageDispatch,
};
pub use domains::activity::{
ProtocolNavigationDependency, ProtocolSchedulerWork, ProtocolSchedulerWorkKind,
ProtocolWorkPublishSequence, RuntimeCommandOutputBarrierCompletion,
RuntimeCommandOutputBarrierPermit, RuntimeCommandOutputBarrierTerminal,
RuntimeCommandOutputBarriers,
};
pub use domains::page::{
BackgroundNavigationCompletion, CompletedPageScreencastCapture,
PageScreencastCaptureCompletion, PageScreencastCaptureStart, PageScreencastRegistration,
PageScreencastSubscriptionStatus, PendingPageScreencastCapture,
};
pub use domains::runtime::{
CompletedDevToolsRuntimeCommandDispatch, DevToolsRuntimeCommandTaskStep,
PendingDevToolsRuntimeCommandDispatch,
};