DioxusLabs / example-projects

Featured Dioxus projects on how to build clean user interfaces in Rust
486 stars 64 forks source link

Cannot build weatherapp #22

Closed troelsarvin closed 1 year ago

troelsarvin commented 1 year ago

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?

marc2332 commented 1 year ago

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

dioxus serve