#rust

551 posts · Last used 57m

Hi Fediverse! 👋 This is Zainium OS, an independent immutable Linux distribution, not based on any other, written mostly in Rust. 🧵

  • a base sealed with fs-verity: not even root can change it
  • updates as one unit, with rollback at boot
  • musl and glibc side by side
  • zex, our own package manager
  • built on our own filesystem layout, the Dualayer Hierarchy Standard (DHS)

https://zainiumdynamics.tech

#introduction #Linux #FOSS #OpenSource #Rust

1
0
1
0

If you use nightly Rust and run rustup update, you'll find a new goodie tonight that I'm particularly happy about: experimental "no graphics" diagnostics in cargo behind the flag -Zterm-graphics and in rustc behind the flags -Znightly-features --error-format=human-no-graphics. (These names will likely change.)

You can permanently turn this feature on, which will only take effect in nightly, by adding the following to your .cargo/config.toml, which will be used on nightly and ignored on stable:

[unstable]
term-graphics = true

If you also add NO_GRAPHICS=1 to your environment flags, the all of your builds using nightly will use the new output.

In lieu of the environment variable, you can also add the following to your .cargo/config.toml, but this will make stable cargo complain about an unused config key:

[term]
graphics = false

Once the feature is stable, it will be much smoother, but expect rough edges at this time. Do let us know about them when you encounter them!

#RustLang #Rust #a11y #Accessibility

12
3
12
1
Replying to on mastodon.social
added more integration tests for all the little edge cases and found a bunch more bugs and race conditions in the process. moving slowly works. 🧑‍🌾 https://github.com/hbons/Twinkle/blob/main/.github/workflows/integration.yml #SparkleShare #Rust #foss #linux
9
10
0
0
Replying to
thinking about showing just file receipts after a successful push/pull instead of all the algorithm steps. I like it better, but it needs some kind of in-progress line or ascii spinner that can be hidden. but that's another rabbit hole. :) #SparkleShare #Rust #UX #cli
4
9
0
0
Replying to
merged this to main! really liking how it turned out. it's much more useful. spinner still a todo. I've moved the old more verbose output under DEBUG=1 https://github.com/hbons/Twinkle #SparkleShare #rust #cli
14
8
1
0
Replying to
most people will never see an automatic merge like this, but hey. every detail matters! :) #SparkleShare #Rust #cli
10
7
0
0
Replying to
got the new #SparkleShare push notification service back up! it's been running for a couple days with no problems or leaks. meanwhile I've been implementing the client side. managed to keep it under 300 lines including automatic reconnect and in a form I'm confident I'm able to understand in the future. but hopefully I won't need to touch it again thanks to #Rust. :)
4
6
0
0
Replying to
on a code organisation spree. pretty cool #Rust can do generics like this and I can delete a bunch of code.
23
4
1
0