New week, new Rust (also RustWeek! Yay!). What are you folks up to?
Hello I'm working on embedded rust embassy with rp235xa and RP 2040 also , I'm building thé unity 2d for embedded rust i liké heavy maths and I dont have money ti buy robotics arms or stuff so need yo create one real Time 2d ![]()
Hi ~ I'm currently working on two open-source side hustles. One is OmniScope, an LLVM-IR static analyzer tailored specifically for auditing heavy FFI/Unsafe boundaries—just dropped it on GitHub! The other is a fun little passion project I’m messing around with: an AI 'roaster' tool that acts like a sarcastic peer, brutally roasting bad code styles and layout mess. Anyway, love the insights here. Let's keep pushing and grinding together! ![]()
I just released the first alpha version of Webcrust, a CMS and web application framework project
I did this last week, but anyway, my webserver can now convert html output to pdf and include images.
What was a bit interesting is I had to put in a tokio::task::spawn_blocking call when it fetches an image via http or it locked up. After a little thought it was obvious why, although I had no idea I wasn't using the multi-thread runtime ( which would have hidden the issue ), as I did all that several years ago now, and I cannot even remember what I had for breakfast yesterday nowadays!
It is a strange kind of bug which can creep up on you, looking locally you cannot see anything wrong, it is a kind of combination of circumstances.
Was that because the HTTP client you're using is blocking? I'm confused because you're using tokio, so thought you'd be using an async HTTP client as well.
The html to pdf function is not async ( and I don't think it should be, although maybe I am wrong about that, I don't really get the pros and cons), and it uses reqwest::blocking::get.