API reference

The API reference provides the types, functions, and methods available in Day's published crates. Use it to look up signatures and detailed contracts while writing Rust code.

Each link opens the latest published release on docs.rs; new APIs appear after publication. The day-app reference uses the headlessmock toolkit; APIs available only with a native toolkit are omitted from that build.

Core

The framework your app is built on.

day-appThe app dependency that re-exports Day APIs and selects the UI toolkit.API on docs.rs
day-corePiece construction, layout, and event routing.API on docs.rs
day-piecesBuilt-in controls, layouts, drawing, and the renderer! extension macro.API on docs.rs
day-geometryPoints, sizes, rectangles, and affine transforms shared across toolkits.API on docs.rs
day-specThe UI specification shared by pieces and toolkits.API on docs.rs
day-scriptDayScript execution for UI walkthroughs and tests.API on docs.rs
day-mockA headless toolkit for tests and documentation.API on docs.rs
day-buildBuild-time resources, localization, and native project generation.API on docs.rs
day-vectorVector parsing, rasterization, and platform icon writers.API on docs.rs
day-fontsBundled font metadata and processing.API on docs.rs

Pieces

Optional UI components for your app.

Parts

Platform capabilities usable from Rust code without a UI.

Example libraries

Reusable examples with their own published APIs.