Skip to content
New issue

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

can't find crate for manganis_macro #68

Open
594212 opened this issue Sep 2, 2024 · 4 comments
Open

can't find crate for manganis_macro #68

594212 opened this issue Sep 2, 2024 · 4 comments

Comments

@594212
Copy link

594212 commented Sep 2, 2024

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
image

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
@ealmloff
Copy link
Member

ealmloff commented Sep 3, 2024

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"

@594212
Copy link
Author

594212 commented Sep 13, 2024

Sorry for late.
I get this error in plain project

dx new

image
image

@hayley
Copy link

hayley commented Oct 27, 2024

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#async-recursion@1.1.1                                                  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

@hayley
Copy link

hayley commented Oct 27, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants