Adding egui library as a dependency

Run this command in a terminal, in your project"s directory:

cargo add egui

To add it manually, edit your project"s Cargo.toml file and add to the [dependencies] section:

egui = "0.30.0"

The egui library will be automatically available globally. Read the egui library documentation.

Back to the crate overview.