rust icon indicating copy to clipboard operation
rust copied to clipboard

Rust for the xtensa architecture. Built in targets for the ESP32 and ESP8266

Results 19 rust issues
Sort by recently updated
recently updated
newest added

I tried this code (repo: [esp-spinlock-repro](https://github.com/zRedShift/esp-spinlock-repro)): ```rust fn main() -> anyhow::Result { esp_idf_sys::link_patches(); esp_idf_hal::task::critical_section::link(); esp_idf_svc::timer::embassy_time::driver::link(); esp_idf_svc::timer::embassy_time::queue::link(); esp_idf_svc::log::EspLogger::initialize_default(); let executor = esp_idf_hal::task::executor::EspExecutor::::new(); let task = executor.spawn_local(async { let mut counter =...

This code ```rust #![no_std] #![no_main] use esp32_hal::{clock::ClockControl, pac::Peripherals, prelude::*, timer::TimerGroup, RtcCntl}; use esp_backtrace as _; use esp_println::println; use xtensa_lx_rt::entry; #[entry] fn main() -> ! { let peripherals = Peripherals::take().unwrap(); let...

I'm not sure who to file this report with, haha, but here seemed like the most correct, AFAICT. I cloned https://github.com/ivmarkov/rust-esp32-std-demo and got that working, which was nice. I then...

I tried this code: ```rust thread::Builder::new().name("thread1".to_string()).spawn(move || { println!("Hello, world!"); }); ``` I expected to see this happen: The thread/freertos task gets names `thread1` Instead, this happened: The thread/freertos task...

Removed several prompts, `$ ` and `> `, for convenient _copy and paste_. When clicking on the _copy symbol_ while hovering over the \`\`\` text block gets the `$ `...

By now developers have to compile whole custom Rust toolchain to work with xtensa isa. Is there any possibility to merge xtensa instruction set support into main branch Rust? Then...

**Background:** Rust has a very useful utility called backtraces. Unlike Rust panics which are an abnormal situation - but still unwind the stack on big iron; for embedded, usually the...

rust-std

I tried this code: ```rust // Wi-Fi setup, etc.... let s = std::net::TcpStream::connect(("example.com", 80))?; log::info!("socket connected"); if let Err(e) = s.set_nodelay(true) { log::error!("nodelay error: {e:?}"); }; ``` I expected to...

The latest version of the image-rs crate (0.25) takes literally hours to compile with the current esp-rs nightly toolchain. Steps to reproduce: ```bash git clone https://github.com/image-rs/image.git cd image cargo +esp...

I'm using Neovim (based on LazyVim) for Rust development and with standard projects everything work properly including Rust Analyzer. When I work with Esp-Idf embedded projects Rust Analyzer is only...