@dmoonfire To be fair, your code wouldn't break under Rust's model because the existence of a debug crate wouldn't cause you to suddenly import it.
@wezm Some more:
Who wants a decentralised github?
No servers or self hosting, no third parties.
Written in Rust!
Let us know what you'd like: https://safenetforum.org/t/safe-git-ui-discussion/32793?u=happybeing
#decentralise #github #Rust
xshell is going to be super nice for replacing shell scripts with #rust code. Invocation goes like this:
filename = "foo bar";
output = cmd!("file", filename).read().unwrap();
- no shell is actually being run, you don't have to worry about inadvertant expansions (eg. variable or whitespace expansions)
- non-zero exit codes are returned as Result::Err, so you have to handle those
@s31bz Even if they're not, everything's written in Rust and easy to install from source. I would recommend ensuring that you're part of the `adm` group though in order to get PolicyKit permissions to the services. May be some issues with the power management assuming you generate your initramfs the Ubuntu way, so throwing a script at that path is ideal.
@celia I do lock my systems several times a day, but everything still works when I log back in. This is peculiar.
@greypilgrim You can crosscompile with cargo by installing that OS's toolchain and selecting it as the target. This applies to all compiled languages. You can't run ELF binaries for Linux on Windows.
@greypilgrim You're essentially just asking which of them compile to binaries. Both Go and Rust compile to a binary.
@happybeing The setup for Tauri was a bit too involved for me, but I was able to get web-view running instantly without any dependencies.
They have a lot of examples on their GitHub repository.
The gist is that you can can program events in the HTML and JS with `external.invoke('event-name')`, catch them in Rust and run `webview.eval()` to update the HTML.
I'm sure Tauri is great all-in-one opinionated solution if you can get past the initial setup though.
@celia How so? Some things are out of our control, like people installing Dash to Dock and it breaking the whole desktop after they updated it this week.
@happybeing Have you looked into using web-view by itself? It's easy enough to use it by itself without all the enforced dependencies and tooling that Tauri adds on top.
System76 doesn't have a say in how Clevo designs their laptops, so you would have to bring your criticism to Clevo.
We are currently in the early stages of designing our own laptops, and then will we when we have complete control over the quality and specs of each product.
It will take a few a years for the required R&D costs, and expanding the factory to support Thelio and the new line of custom laptops.
For now, we're doing the best with what we have, and writing open source firmware.
@liaizon It's still a work in progress, but it is nearing completion. There's a lot of progress each day.
System76 Engineer; Pop!_OS maintainer; Rust / Linux software developer
Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.