sporksmith :unicycle: :rust: · @sporksmith
196 followers · 411 posts · Server hachyderm.io

Wrote an implementation of thread local storage in , for Linux x86_64, with options to a) use libc's thread local storage, b) leverage libc's thread local storage that something in the same process has set up, or c) work without native thread local storage at all.

Toying with the idea of publishing it as a crate but, uh, I guess these requirements are pretty niche.

#no_std #rust

Last updated 1 year ago

Wesley Moore · @wezm
1587 followers · 257 posts · Server mastodon.decentralised.social

I built a Rust crate to parse MacBinary files and resource fork data. As something of a testbed I created a webpage that uses the crate compiled to WebAssembly to show the data contained within a file you select and allow you to download individual parts, all client-side.

Parsing is done without any heap allocations with makes it `no_std` (embedded) compatible too.

7bit.org/macbinary/

#retrocomputing #vintagemac #rust #no_std

Last updated 1 year ago

· @dcz
237 followers · 1442 posts · Server fosstodon.org

Exploring programming patterns can get tedious, when you're rewriting the same example for the third time, each version having different shortcomings.

It's useful to check the ground truth once in a while and see how the piece connects to the bigger system, but that's still more potentially wasted effort.

In totally unrelated news, coding with is hard mode :)

#rust #no_std

Last updated 2 years ago

TudbuT :v_bi: · @TudbuT
29 followers · 212 posts · Server tech.lgbt

Because the crate I made yesterday (crates.io/crates/microasync) didn't have much to offer except for the sync function and yet got so much positive feedback, I thought I'd make another *very small* crate to provide a more proper and IO.

This entire crate and its one dependency together are smaller than the futures-executor crate, while having more features. It's also got support (only for the runtime, not the IO)!

crates.io/crates/microasync-ut

#rust #async #runtime #no_std #rustlang

Last updated 2 years ago

Q · @masterq
110 followers · 6513 posts · Server pawoo.net

 本読んで思ったんですが、  を付けて  に依存せず プログラミングができるのであれば、なぜ  コミュニティはRustがallocする可能性を懸念しているのでしょうか。。。

#linux #rust #alloc #no_std #組込みRust

Last updated 3 years ago

RAOF · @RAOF
128 followers · 741 posts · Server icosahedron.website

@hergertme@mastodon.social ah, but the context pointer - and context data - is only ever on the stack unless you explicitly Box<> it. So it's definitely not going to do any sneaky implicit allocation/deallocation which would indeed be problematic.

Indeed, for kernel modules you'd be using , which implies you *can't* allocate IIUC.

#no_std

Last updated 8 years ago