Skip to main content

Search

Items tagged with: RustLang


Watch Philip's talk at #FOSDEM, where he covers the API and prototypes for 'connectbyname', a library function that takes as input a DNS name and returns a TLS connection, as well as a new EDNS(0) option called Proxy Control option that allows stub resolvers to send requirements to a local proxy.

We're developing an #API in #rustlang that can internally use asynchronous #DNS lookups, implement Happy Eyeballs, support #DANE, SVCB/HTTPS, encrypted client hello, etc.

fosdem.org/2023/schedule/event…


✨ GStreamer Rust bindings 0.20 and Rust plugins 0.10 release is out

This release features the addition of a few convenience APIs, the addition of bindings for some minor APIs and a lot of internal changes to improve performance and code generation.

gstreamer.freedesktop.org/news…

#GStreamer #Rust #RustLang


As part of the optimizations, there are a lot fewer temporary allocations now, e.g. for NUL-terminated strings.

Also, in addition to better performance, the code generation improvements also reduce the binary size considerably.

Some GStreamer plugins saw reductions of 15-20% 🥳

#GStreamer #Rust #RustLang


New gtk-rs release is out! More information there: gtk-rs.org/blog/2023/02/10/new…

#rust #rustlang #gtk


ICYMI 👉 Over the course of the last decade, #Rustlang has emerged as a new programming language for writing safe low-level code. In the first of a series, @gfxstrand explores using Rust to write Mesa #Vulkan drivers: col.la/ervd1 #OpenSource @rustlang


Getting everyone to stop using sha1 is not a trivial task.

sequoia-pgp.org/blog/2023/02/0…

#rust #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


RIIR strikes again!
github.com/fish-shell/fish-she…

#rust #rustlang

/cc @jntrnr


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.


#Rustlang 1.67 added extra optimizations of struct layouts. This might break code that relied on the "don't rely on this" layout of Rust structs without `#[repr(C)]`.

If you want to ensure your code doesn't rely on undocumented struct layout, there's an nightly flag for that: github.com/rust-lang/rust/issu…

RUSTFLAGS="-Z randomize-layout" cargo +nightly test


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


Thanks to my students and former students at @TelecomParis for this perfect gift: a #rustlang themed temperature sensitive cup.


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…


A two-month beginner's project: Machine Learning from scratch

github.com/Raibows/MLinRust

Discussions: discu.eu/q/github.com/Raibows/…

#programming #rustlang


declares intent on #fediverse - blog.mozilla.org/en/mozilla/mo…

With their track of incubating #RustLang I'm curious how this pans out.


Well 🚒 I finally understand lifetimes in #rustlang!

Also the #Android team just open sourced their four day, intro to Rust course!
google.github.io/comprehensive… 🤸🏻


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/


Here's a new and hopefully useful crate for #Rustlang #ActivityPub implementors: crates.io/crates/sigh


Vulkan drivers written in #RustLang? Why not?

gitlab.freedesktop.org/mesa/me…

I blame @alyssa for making me start typing on this.


🦀​ 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


railing[i-1..=i+2].copy_from_slice(&[cat.tail, cat.hind_legs, cat.front_legs, cat.head]);<br>

#RustCataStructures #rust #RustLang #RustLanguage #cat #CatsOfMastodon


let four_cats: Vec<(Cat, Color)> = vec![rand::random::(Cat, Color); 4];<br>let cats = [vec![rand::random::(Cat, Color); 2], four_cats.clone(), four_cats, vec![rand::random::(Cat, Color)]].into_iter().flatten().collect::<Vec<_>>();<br>

Ahhh, this one was tricky 😅

Source: mastodon.nl/@ErikSchouten73/10…

@ErikSchouten73

#cat #CatsOfMastodon #rust #RustLanguage #RustLang #RustCataStructures


🥳 A new version of csv-diff has just been released! 🚀

docs.rs/csv-diff/latest/csv_di…

csv-diff is the fastest CSV-diffing library in the world - written in #Rust

It can compare two 1,000,000 rows x 9 columns CSVs in < 600ms!

Note that this is still a beta release and the library itself is still very young.

#RustLang #Release #CSV #CSVDiff #Performance #DataScience #Data #Diff #Difference #OpenSource #Crate


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:


Wirefish, a crossplatform packet sniffer build with Tauri!

github.com/stefanodevenuto/wir…

Discussions: discu.eu/q/github.com/stefanod…

#programming #rustlang


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


Our @zbus Windows CI jobs fails 60-80% of the time (almost guaranteed on the first run) with an "Unable to open shared memory" error. Would anyone with some Windows dev xp happen to know or can take a look what happens?

I've noticed that typically it's the doc tests that fail.

gitlab.freedesktop.org/dbus/zb…

#Windows #rustlang #zbus


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…


Hi, folks! Please participate in our short survey:

> We’d like to learn from #RustLang developers about their experience and best practices with C and C++ code in their Rust code base. <...>

jb.gg/rust_cpp

#JetBrains #IntelliJRust #Programming #IDE


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


While playing with the #Mastodon api, i wrote a little desktop notification daemon in #rustlang.
So much fun!!

The code is available here

github.com/wolf4ood/mastodon-n…