-
Notifications
You must be signed in to change notification settings - Fork 0
Rust
If rust fails to build a dependency with:
Could not find directory of OpenSSL installation, and this
-syscrate cannot proceed without this knowledge. If OpenSSL is installed and this crate had trouble finding it, you can set theOPENSSL_DIRenvironment variable for the compilation process.
install the openssl headers sudo dnf install openssl-devel
rust-analyzer by default will cargo check with --all-targets, causing a check error for cfg(test).
Another thing is that the peripherals are generated by a macro, which in turn depends on a specific feature for a specific chip.
To prevent both, set rust-analyzer.cargo.allTargets=false in the LSP config.
https://github.com/AllexVeldman/techwiki/wiki/(neo)vim#per-project-settings
This does not solve rust-analyzer resolving the wrong return type for esp_hal::init() which, according to rust-analyzer, resolves to esp32h2::Peripherals while in reality it resolves to esp_hal::peripherals::Peripherals.