App-author crate. One dependency for a window, widgets, and [Entity].
Layer crates (inset-widgets, inset-foundation, …) stay the source of
truth. This crate re-exports the types an application names. Widget kits
(inset-cupertino, inset-winui) are separate dependencies, and the
rendering layer stays behind inset-widgets. Hosts and ports still depend
on the layer crates directly.
use inset::{App, IntoWidget, run_app};
use inset_cupertino::CupertinoApp;
#[inset::main]
fn main(app: &mut App) {
run_app(app, CupertinoApp::new().home(Home).into_widget());
}