can't find crate for `manganis_macro`
Problem
manganis can't compile when executing cargo build or dx serve
error[E0463]: can't find crate for `manganis_macro`
--> /home/sul/.cargo/registry/src/index.crates.io-6f17d22bba15001f/manganis-0.2.2/src/lib.rs:4:9
|
4 | pub use manganis_macro::*;
| ^^^^^^^^^^^^^^ can't find crate
For more information about this error, try `rustc --explain E0463`.
error: could not compile `manganis` (lib) due to 1 previous error
Steps To Reproduce
dx serve
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
Environment:
- Manganis version: 0.2.2
- Rust version: rustc 1.80.1 (3f5fd8dd4 2024-08-06)
- OS info:
NAME="Fedora Linux"
VERSION="40 (Workstation Edition)"
ID=fedora
VERSION_ID=40
VERSION_CODENAME=""
PLATFORM_ID="platform:f40"
PRETTY_NAME="Fedora Linux 40 (Workstation Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:40"
DEFAULT_HOSTNAME="fedora"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f40/system-administrators-guide/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=40
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=40
SUPPORT_END=2025-05-13
VARIANT="Workstation Edition"
VARIANT_ID=workstation
- App platform: web
Questionnaire
- I'm interested in fixing this myself but don't know where to start
Can you share the code you ran into this issue with? I was not able to reproduce this issue with a blank project and the dependency manganis = "0.2.2"
Sorry for late. I get this error in plain project
dx new
I'm seeing this now when running dx serve on a couple of Dioxus projects that used to build just fine:
\ ⚙️ Compiling registry+https://github.com/rust-lang/crates.io-index#[email protected] error[E0463]: can't find crate for `manganis_macro`
--> /home/hayley/.cargo/registry/src/index.crates.io-6f17d22bba15001f/manganis-0.2.2/src/lib.rs:4:9
|
4 | pub use manganis_macro::*;
| ^^^^^^^^^^^^^^ can't find crate
For more information about this error, try `rustc --explain E0463`.
error: could not compile `manganis` (lib) due to 1 previous error
Error: 🚫 Serving project failed:
Caused by:
Build failed
I was able to fix this by switching to Rust stable, so I must've updated my nightly build at some point between the last successful build and trying it today.
I saw this referenced as a fix in the discord: https://discord.com/channels/899851952891002890/943190605067079712/1245103309954486312