Skip to content

cargo clippy panic #20

@selfhoster1312

Description

@selfhoster1312

Hello. I have encountered a strange issue due to relm4-icons build script. It crashes when running cargo clippy on a crate that requires relm4-icons.

error: failed to run custom build command for `relm4-icons v0.9.0`

Caused by:
  process didn't exit successfully: `/home/user/.cargo/target/debug/build/relm4-icons-3ce5adff2852e35f/build-script-build` (exit status: 101)
  --- stderr
  Canonical manifest dir: "/home/user/.cargo/target/debug/build/relm4-icons-01874538ae411613/out"
  thread 'main' panicked at /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/relm4-icons-0.9.0/build.rs:68:17:
  Couldn't find your manifest directory
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...

This issue is reproducible on both stable and nightly. I have no idea if #19 is good code, but i can attest it fixes my problem.

Steps to reproduce:

  • cargo new testicons
  • cd testicons
  • cargo add relm4-icons
  • cargo clippy

Have a great day!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions