DioxusLabs / example-projects

Featured Dioxus projects on how to build clean user interfaces in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot build weatherapp

troelsarvin opened this issue · comments

I'm trying to build the weatherapp demo on Fedora Linux 37.

First, I installed a number of packages which turned out to be required:

sudo dnf install cairo-devel cairo-gobject-devel gdk-pixbuf2-devel atk-devel pango-devel gtk3-devel libsoup-devel webkit2gtk4.0-devel libappindicator-gtk3-devel

All dependencies seem to be order now, but the build fails:

$ cargo build
   Compiling weatherapp v0.1.0 (/var/tmp/troels/example-projects/weatherapp)
error[E0433]: failed to resolve: could not find `web` in `dioxus`
 --> src/main.rs:4:13
  |
4 |     dioxus::web::launch(app);
  |             ^^^ could not find `web` in `dioxus`

For more information about this error, try `rustc --explain E0433`.
error: could not compile `weatherapp` due to previous error

Maybe there is an error in Carto.toml?

Hey! This appears to have been fixed, you need to use the Dioxus cli instead of Cargo though.

dioxus serve