Skip to content
Allex edited this page Dec 10, 2024 · 2 revisions

OpenSSL

If rust fails to build a dependency with:

Could not find directory of OpenSSL installation, and this -sys crate cannot proceed without this knowledge. If OpenSSL is installed and this crate had trouble finding it, you can set the OPENSSL_DIR environment variable for the compilation process.

install the openssl headers sudo dnf install openssl-devel

ESP32 + rust-analyzer

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.

Clone this wiki locally