Create new egui project

Chester Wyke April 08, 2024 Updated: July 14, 2026 #Rust

After setting up the project locally using the instructions below you can follow the first few steps in the new create setup to link to the remote repo. It may not make sense to link to the CI jobs as the templates already include jobs.

Currently have a PR in flight to address this https://github.com/emilk/eframe_template/pull/227. In the mean while you may still use it with the instructions in the readme at https://github.com/c-git/eframe_template/tree/create-cargo-generate-template.

See also the windowed section below for an application with a basic windowing framework.

TLDR from Readme

See favorites setup

If you want to check what favorites you have created you can use the following command

cargo generate --list-favorites

Use a favorite

cargo generate egui

Use from github repo

Windowed Framework Application

This basic framework is designed to allow one to easily spin up a new application that supports multiple windows. The github repo can be found at https://github.com/c-git/egui_windowed_application_template. See readme for more details or use the commands below if you’ve already done the setup (ie. installed cargo generate).

Use a favorite

cargo generate egui_windowed

Use from github repo

cargo generate c-git/egui_windowed_application_template --branch cargo-gen