We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cargo init
cargo add iced
shell.nix
DEPENDENCIES.md
nix-shell
// src/main.rs use iced::{Application, Element, Sandbox}; use iced::widget::text; struct App; #[derive(Debug)] enum Message {} impl Sandbox for App { type Message = Message; fn new() -> Self { Self } fn title(&self) -> String { "Hello World!".to_string() } fn update(&mut self, _message: Self::Message) {} fn view(&self) -> Element<'_, Self::Message> { text("Hello World!").into() } } fn main() -> iced::Result { <App as Application>::run(Default::default()) }
cargo run
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.17s Running `target/debug/iced-app` thread 'main' panicked at /home/henri/.cargo/registry/src/index.crates.io-6f17d22bba15001f/iced_winit-0.12.2/src/application.rs:119:10: Create event loop: Os(OsError { line: 80, file: "/home/henri/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/linux/wayland/event_loop/mod.rs", error: WaylandError(Connection(NoWaylandLib)) }) note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
The expected behaviour is that the hello world example runs
crates.io release
Linux
No response
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Is there an existing issue for this?
Is this issue related to iced?
What happened?
cargo init
cargo add iced
shell.nix
fromDEPENDENCIES.md
nix-shell
cargo run
gives the following output:What is the expected behavior?
The expected behaviour is that the hello world example runs
Version
crates.io release
Operating System
Linux
Do you have any log output?
No response
The text was updated successfully, but these errors were encountered: