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.rsday-corePiece construction, layout, and event routing.API on docs.rsday-reactiveSignals, memos, and effects for reactive state.API on docs.rsSetup and usage guide →day-piecesBuilt-in controls, layouts, drawing, and the renderer! extension macro.API on docs.rsday-geometryPoints, sizes, rectangles, and affine transforms shared across toolkits.API on docs.rsday-specThe UI specification shared by pieces and toolkits.API on docs.rsday-localization-uiThe piece-facing Project Fluent localization layer over the day-localization engine.API on docs.rsSetup and usage guide →day-localizationThe low-level localization engine and the built-in core string catalog.API on docs.rsSetup and usage guide →day-scriptDayScript execution for UI walkthroughs and tests.API on docs.rsday-mockA headless toolkit for tests and documentation.API on docs.rsday-asyncTasks, cancellation, blocking work, and timers.API on docs.rsSetup and usage guide →day-bridgeNative bridge completion and stream contracts.API on docs.rsSetup and usage guide →day-buildBuild-time resources, localization, and native project generation.API on docs.rsday-modelObservable models and property bindings.API on docs.rsSetup and usage guide →day-toolchainHost toolchain and SDK discovery.API on docs.rsday-vectorVector parsing, rasterization, and platform icon writers.API on docs.rsday-fontsBundled font metadata and processing.API on docs.rsday-script-protocolScript commands, events, and capture configuration.API on docs.rsPieces
Optional UI components for your app.
day-piece-settingsPreferences, settings pages, and About panels.API on docs.rsSetup and usage guide →day-piece-swiftuiHost custom SwiftUI views.API on docs.rsSetup and usage guide →day-piece-text-editorRich-text editing and styled documents.API on docs.rsSetup and usage guide →day-piece-crash-reporterCapture, review, and send crash reports.API on docs.rsSetup and usage guide →day-piece-cameraPreview the camera and capture photos.API on docs.rsSetup and usage guide →day-piece-chartsReactive charts drawn with Day canvas.API on docs.rsSetup and usage guide →day-piece-lottiePlay bundled Lottie animations.API on docs.rsSetup and usage guide →day-piece-mediaNative audio and video playback.API on docs.rsSetup and usage guide →day-piece-webviewEmbed web pages and application documents.API on docs.rsSetup and usage guide →Parts
Platform capabilities usable from Rust code without a UI.
day-part-deviceDevice identity and battery snapshots.API on docs.rsSetup and usage guide →day-part-biometricsVerify the user with the platform's biometric or device-credential prompt.API on docs.rsSetup and usage guide →day-part-keychainStore small secrets in the platform's secure store.API on docs.rsSetup and usage guide →day-part-sensorsRead motion sensors, including the accelerometer and gyroscope.API on docs.rsSetup and usage guide →day-part-clipboardRead and write the system plain-text clipboard.API on docs.rsSetup and usage guide →day-part-connectivityNetwork connectivity and connection type.API on docs.rsSetup and usage guide →day-part-hapticsTrigger native haptic feedback.API on docs.rsSetup and usage guide →day-part-soundPlay and loop short sound clips through the native audio engine.API on docs.rsSetup and usage guide →day-part-wakelockKeep the screen on while something is showing.API on docs.rsSetup and usage guide →day-part-preferencesA persistent native key/value preference store.API on docs.rsSetup and usage guide →day-part-downloadsManaged downloads and progress.API on docs.rsSetup and usage guide →day-part-filesystemApplication files and streaming reads.API on docs.rsSetup and usage guide →day-part-httpHTTP requests, streaming bodies, and WebSockets.API on docs.rsSetup and usage guide →day-part-local-notifyLocal notifications and scheduling.API on docs.rsSetup and usage guide →day-part-locationLocation updates and availability.API on docs.rsSetup and usage guide →day-part-permissionsPermission status and requests.API on docs.rsSetup and usage guide →day-part-authSystem sign-in, OAuth, and passkeys.API on docs.rsSetup and usage guide →day-part-speechSpeak text with the system voice.API on docs.rsSetup and usage guide →day-part-zeroconfDiscover and advertise local network services.API on docs.rsSetup and usage guide →Example libraries
Reusable examples with their own published APIs.
day-piece-charts-galleryReusable chart examples and export menus.API on docs.rsSetup and usage guide →day-piece-lottie-galleryReusable animation examples with bundled assets.API on docs.rsSetup and usage guide →