Installation
Minimum setup
Add twill to your Cargo.toml:
[dependencies]
twill = "0.3"
Enable GUI backends
Enable only the backends you use:
[dependencies]
twill = { version = "0.3", features = ["egui"] }
# or
twill = { version = "0.3", features = ["iced"] }
# or
twill = { version = "0.3", features = ["slint"] }
You can combine features:
[dependencies]
twill = { version = "0.3", features = ["egui", "iced", "slint"] }
Verify installation
Run:
& "$env:USERPROFILE\.cargo\bin\cargo.exe" check
If you enabled backend features, you can verify the crate builds with:
& "$env:USERPROFILE\.cargo\bin\cargo.exe" build --features egui
& "$env:USERPROFILE\.cargo\bin\cargo.exe" build --features iced
& "$env:USERPROFILE\.cargo\bin\cargo.exe" build --features slint