Skip to main content

Crate decant_render

Crate decant_render 

Source
Expand description

decant-render — headless-Chrome SPA rendering (feature-gated).

When compiled without the render feature this crate is an empty stub — it exports a RenderError type and a placeholder not_available() function so that the main decant crate can reference it unconditionally and gate at runtime.

Enable the render Cargo feature to pull in chromiumoxide and the real impl:

cargo build --features render

Re-exports§

pub use error::RenderError;
pub use backend::BrowserBackend;
pub use browser::Browser;
pub use screenshot::DESKTOP;
pub use screenshot::MOBILE;
pub use screenshot::TABLET;
pub use screenshot::Viewport;

Modules§

backend
Stub module for browser backends.
browser
Stub module for browser instance.
error
Error types for decant-render.
screenshot
Stub module for viewport screenshots.

Functions§

not_available
Returns Err with a helpful message when the crate was not compiled with --features render.