Search

Items tagged with: RustLang


@TauriApps is awesome!

I just made a standalone app for emoji-mart using tauri.

It is very easy to use as a developer, starts fast, binaries are small (2mb for this project) and packaging just works out of the box.

For this project I did not even had to write a single line of rust, so you don't need to be comfortable with #rustlang to be able use it.

github.com/Simon-Laux/tauri-em…

#tauri



let floor = Floor::default();<br>let mut bowl = Bowl::new();<br>let mut cat = Cat::mew();<br><br>bowl.place_on(&floor);<br>cat.sit_on(&bowl);<br><br>let floor: &mut Floor = unsafe {<br>    &mut *(&floor as *const Floor as *mut Floor)<br>};<br><br>floor.lower_by(50 * CM);<br>

Levitation needs some unsafe code, but not around the cat, cats don't take fall damage.

Original post by @Kyu : meow.social/@Kyu/1095710305682…

#RustCataStructures #rust #RustLang #cat #CatsOfMastodon


Not all cats have the gift of levitation.
Those that do, however, do like to flaunt it.


The Rust base64 crate got a new release the other day, which removed (or rather deprecated for now) the simple encoding/decoding API and requires quite a bit boilerplate for such a simple task.

The maintainer does not see the point in providing a simpler API for the common cases because if the API is too difficult to use then Rust is just the wrong language for you 🙄

Too bad the crate has such a prominent name on crates.io and is used so widely. I hope that doesn't turn away too many beginners because something as simple as base64 handling is so complicated.

The data-encoding crate looks like a good alternative for the same tasks. It provides the same amount of flexibility while still providing a simple API for the common tasks.

lib.rs/crates/data-encoding

#rust #RustLang


Now that we made it all through the holidays, we're happy to do some releases again!

First up is our #RPKI relying party software Routinator. 🚀 Version 0.12.1 fixes a small number of bugs. Most importantly, the #TLS-enabled servers for both HTTP and RTR now also accept private keys formatted as PKCS#1 RSA keys rather than only accepting PKCS#8 keys. #RoutingSecurity #rustlang

github.com/NLnetLabs/routinato…





The experimental Rust PR to add a more expressive "interop" ABI on top of the C ABI is IMHO the most exciting new effort that happened in Rust in the last few years.

Thanks to @josh and others for starting this very important work 🥳​

github.com/rust-lang/rust/pull…

Also @Mara's reply seems to indicate that some serious thought is now also put into other related areas, especially for handling Rust dynamic libraries.

github.com/rust-lang/rust/pull…

Very exciting stuff for making Rust a better choice in various areas where exactly these topics were slowing down or hindering adoption.

#Rust #RustLang


First video in the "decrusted" series where we peel back the crust of the serde crate is now up: youtu.be/BI_bHCGRgMY. I quite like the format, so expect to see more of these! #rustlang


🦀📕 Rust Atomics and Locks is now available as ebook! 🎉

Pre-ordered printed copies should start shipping in a few weeks. ⌛️

#rustlang

marabos.nl/atomics/




🦀​ Rust 🦀​ people, is there a way to use conditional compilation in the match parts of a declarative macro? Other than duplicating the whole macro definition.

Basically something like

macro_rules! foo(<br>    ($x:expr) => { {<br>        println!("{}", $x);<br>    }};<br>    #[cfg(target_os = "linux")]<br>    ($x:expr, $y:expr) => { {<br>        println!("{} {}", $x, $y);<br>    }};<br>);<br>

This currently fails compiling: play.rust-lang.org/?version=st…

#Rust #RustLang


My first commit (written with antoyo) was merged in GCC! \o/

It allows us to continue improving the GCC backend for the Rust compiler (github.com/rust-lang/rustc_cod…) without needing a custom libgccjit version. :)

github.com/gcc-mirror/gcc/comm…

#rustlang #gcc





One of the ways I disagree with many of my esteemed fellow Rust people is that I think #async #RustLang is great. Switching #nextest over to #asynchronous Rust has yielded incredible dividends, including but not limited to what I described in sunshowers.io/posts/nextest-an….

The ability to write cross-platform heterogenous selects provides an extraordinary amount of power.

BTW, now that I'm at @oxidecomputer, I've been trying out nextest on #illumos and it works with zero (0) code changes!


🦀 ChatGPT has some great ideas for new #rustlang features:



We're looking for a #c / #cpp or #rust #freelance developer! It's mostly about Linux namespaces, PAM modules, and patches in 3rd-party software. Low volume. Take a look, mail us, or spread the word!

blog.uberspace.de/freelance-jo…

Boosts very welcome! #rustlang #jobad #job



Little #RustLang trivia for the crate `anyhow`:

if `FooError` and `BarError` are both error types, then you can do:

let wrapped = anyhow::anyhow!(FooError).context(BarError);

and `wrapped` will `downcast_ref` to both `FooError` and `BarError`.

Useful to inspect the context independently of the error! Just a bit unintuitive in my opinion.

docs.rs/anyhow/1.0.66/anyhow/t…



One of the coolest tools we use at #1Password has been #opensource ’d!

I present to you Typeshare 2.0! A way to share Rust types across the FFI (supports, Swift, Kotlin, TypeScript, and Go). We use it everyday and I love it, makes things so easy and awesome.

github.com/1Password/typeshare

#rust #swift #kotlin #go #golang #rustlang



Hey folks,

I'm currently looking for new permanent and remote-only opportunities in Europe.

I'm really willing to get my hands dirty with some Rust. My day job is mostly about TypeScript and NodeJS but I have plenty of projects on my GitHub account you can check github.com/yamafaktory .

Boost really appreciated ❤️ !

#rust #rustlang #typescript #nodejs #job


cargo-nextest 0.9.44 is out! A call for testing:

This version of my next-gen #RustLang #TestRunner supports pausing and resuming test runs on Unix (#NextestCtrlZ).

To make this work reliably, #nextest needs to use a "double-spawn" approach. This is currently off by default but can be turned on with an env var, `NEXTEST_EXPERIMENTAL_DOUBLE_SPAWN=1`.

Call for testing: If you're on Unix, please help test this! Update to 0.9.44, then set this environment variable. Thanks!

nexte.st/CHANGELOG.html#0944--…


Ohhhhh, amazing! It’s looking like the #rustlang restrictions RFC will likely be accepted!

This will remove the need for sealed traits, and will instead allow writing:

pub impl(crate) trait Foo {}

Which indicates the trait is public, but can only be implemented by the crate! It will also include:

pub struct Time {
pub mut(crate) millis: usize,
}

To enable fields to be marked read-only in public APIs!

github.com/rust-lang/rfcs/pull…



Hi, I'm treefit, a #foss dev working on #deltachat. I'm responsible for the desktop client together with @jikstra.
My favorite coding language is #rustlang, but I "speak" #typescript, #javascript, #html, #css, too.
I'm also capable in #python and #swift, but not as much.

I'm new to the mastodon/toot style of communication (never used Twitter, either), so I'm still learning of how this all works.

My goal is to give you some behind-the scenes peeks onto the DeltaChat development.

#introduction



RT @mnt_io@twitter.com

Latest project released, npmjs.com/package/@matrix-org/…. Node.js bindings to the Rust matrix-sdk-crypto crate. It exposes the required API to write bots and bridges for Matrix and other networks. Please come try it!

#matrix #rustlang #nodejs #napi #bot #bridge #decentralization twitter.com/matrixdotorg/statu…

🐦🔗: twitter.com/mnt_io/status/1548…