Okay I am going crazy, I added log = "0.4" to my cargo dependencies, and all of a sudden my project blew up 🙁
Cargo.toml
[package]
name = "project"
version = "0.1.0"
[dependencies]
dioxus = { version = "0.6.0", features = [] }
log = "0.4"
[features]
default = ["mobile"]
web = ["dioxus/web"]
desktop = ["dioxus/desktop"]
mobile = ["dioxus/mobile"]
# ...
main.rs
use dioxus::prelude::*;
// ...
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `dioxus`
--> src/main.rs:3:5
|
3 | use dioxus::prelude::*;
| ^^^^^^ use of unresolved module or unlinked crate `dioxus`
|
help: if you wanted to use a crate named `dioxus`, use `cargo add dioxus` to add it to your `Cargo.toml` and import it in your code
|
3 + extern crate dioxus;
|
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `dioxus`
--> src/components/hero.rs:1:5
|
1 | use dioxus::prelude::*;
| ^^^^^^ use of unresolved module or unlinked crate `dioxus`
|
What on earth is going on here? 🙁 just my luck for trying to do this before doing my initial commit, I was just tidying things up and now no amount of undo's fixes anything. I tried cargo clean but cargo build and dx serve is still causing issues...