Skip to content

build error where there shouldnt be #12935

Closed as not planned
Closed as not planned
@makuru-org

Description

@makuru-org

Problem

I'll try to make a small project with slint but it errors out with message:

   compiling …
   Compiling slint-macros v1.2.2
   Compiling slint v1.2.2
error[E0463]: can't find crate for `slint_macros`
   --> /home/lenovo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/slint-1.2.2/lib.rs:202:9
    |
202 | pub use slint_macros::slint;
    |         ^^^^^^^^^^^^ can't find crate

For more information about this error, try `rustc --explain E0463`.
error: could not compile `slint` (lib) due to previous error

even though it is defined in cargo.toml

Steps

  1. Install Nixos
  2. copy my config (ask for it)
  3. run my project calculator.zip

Possible Solution(s)

No response

Notes

slint-ui/slint#3877

Version

cargo 1.73.0 (9c4383fb5 2023-08-26)
release: 1.73.0
commit-hash: 9c4383fb55986096b414d98125421ab87b5fd642
commit-date: 2023-08-26
host: x86_64-unknown-linux-gnu
libgit2: 1.6.4 (sys:0.17.2 vendored)
libcurl: 8.2.1-DEV (sys:0.4.65+curl-8.2.1 vendored ssl:OpenSSL/1.1.1u)
ssl: OpenSSL 1.1.1u  30 May 2023
os: NixOS 23.11.0 [64-bit]

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bugS-needs-infoStatus: Needs more info, such as a reproduction or more background for a feature request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions