kiffie / usbd-audio

Audio 1.0 USB class for usb-device
MIT License
27 stars 5 forks source link

Cannot include usbd-audio as crate in cargo manifest #1

Closed backtail closed 2 years ago

backtail commented 2 years ago

When I try to include the usbd-audio crate in my Cargo.toml, rust-analyzer starts to use 100% of my CPU and never finds any metadata.

My current rust setup:

$ rustc --version
$ rustc 1.64.0 (a55dd71d5 2022-09-19)

I use the rust-analyzer in the most recent release from the VS Code marketplace: rust-analyzer version: 0.3.1277-standalone

I want to use your library in a somewhat big project, where I already included a dozen crates without a problem. Any clue, on what it might be?

kiffie commented 2 years ago

I am using rust-analyzer version 0.3.1277 with vs-code as well but with rustc-1.65 and rustc-1.67-nighly. It works. I am using it in a project with about 20 crates, too. So, unfortunately, I do not know why rust-analyzer hangs in your project.

Maybe, something is wrong with the rust-analyzer settings in .vscode/settings.json?

Does cargo build or cargo check work?

backtail commented 2 years ago

Using rustc-1.64 was the problem. rustc-1.65 works!

kiffie commented 2 years ago

Great. Problem solved.