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.
✨ 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.
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% 🥳
Exploring Rust for Vulkan drivers, part 1
Exploring the area of using Rust to write Mesa Vulkan drivers.Collabora | Open Source Consulting
@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…
GitHub - Simon-Laux/tauri-emoji-mart-app: Emoji Mart packaged as tauri app, simple emoji picker app.
Emoji Mart packaged as tauri app, simple emoji picker app. - GitHub - Simon-Laux/tauri-emoji-mart-app: Emoji Mart packaged as tauri app, simple emoji picker app.GitHub
RIIR strikes again!
github.com/fish-shell/fish-she…
/cc @jntrnr
Rewrite it in Rust by ridiculousfish · Pull Request #9512 · fish-shell/fish-shell
(Sorry for the meme; also this is obligatory.) I think we should transition to Rust and aim to have it done by the next major release: Nobody really likes C++ or CMake, and there's no clear path f...GitHub
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
#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
Tracking issue for `-Z randomize-layout` · Issue #106764 · rust-lang/rust
This is a tracking issue for the unstable rustc flag -Zrandomize-layout. (rust-lang/compiler-team#457) About tracking issues Tracking issues are used to record the overall progress of implementatio...GitHub
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.
data-encoding — Rust data encoding library
Efficient and customizable data-encoding functions like base64, base32, and hex | Rust/Cargo packagelib.rs
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…
Release 0.12.1 ‘Plan uw reis in de app’ · NLnetLabs/routinator
Bug Fixes Actually use the extra-tals-dir config file option. (#821) Allow private keys prefixed both with BEGIN PRIVATE KEY and BEGIN RSA PRIVATE KEY in the files referred to by http-tls-key and ...GitHub
A two-month beginner's project: Machine Learning from scratch
Discussions: discu.eu/q/github.com/Raibows/…
GitHub - Raibows/MLinRust: A machine learning library in Rust from scratch.
A machine learning library in Rust from scratch. Contribute to Raibows/MLinRust development by creating an account on GitHub.GitHub
declares intent on #fediverse - blog.mozilla.org/en/mozilla/mo…
With their track of incubating #RustLang I'm curious how this pans out.
Mozilla to Explore Healthy Social Media Alternative
In early 2023, Mozilla will stand up and test a publicly accessible instance in the Fediverse at Mozilla.Social.Steve Teixeira (The Mozilla Blog)
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.
Experimental feature gate proposal `interoperable_abi` by joshtriplett · Pull Request #105586 · rust-lang/rust
Summary This experimental feature gate proposal proposes developing a new ABI, extern "interop", and a new in-memory representation, repr(interop), for interoperability across high-level programmin...GitHub
Decrusting the serde crate
In this stream, we peel back the crust on the serde crate — https://github.com/serde-rs/serde/ — and explore its interface, structure, and mechanisms. We tal...YouTube
🦀📕 Rust Atomics and Locks is now available as ebook! 🎉
Pre-ordered printed copies should start shipping in a few weeks. ⌛️
Rust Atomics and Locks by Mara Bos
Low-level Concurrency in Practice. This practical book helps Rust programmers of all levels gain a clear understanding of low-level concurrency. You'll learn everything about atomics and …marabos.nl
Vulkan drivers written in #RustLang? Why not?
gitlab.freedesktop.org/mesa/me…
I blame @alyssa for making me start typing on this.
Draft: Add infrastructure for Vulkan drivers written in Rust (!20298) · Merge requests · Mesa / mesa · GitLab
We all know that C sucks. Many of us think C++ sucks worse. Rust doesn't suck. Wouldn't it be great if we could write Vulkan drivers in a...GitLab
panic!("HOOMAN IS TORTURING CAT USING WATER!!!111oneone");<br>
Source: imgur.com/iSfrFmX
#RustCataStructures #rust #RustLang #RustLanguage #cat #CatsOfMastodon
🦀 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 Playground
A browser interface to the Rust compiler to experiment with the languageplay.rust-lang.org
My first commit (written with antoyo) was merged in GCC!
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…
libgccjit: Fix float vector comparison · gcc-mirror/gcc@d2e782c
Fix float vector comparison and add comparison tests to include float and vectors. gcc/testsuite: PR jit/107770 * jit.dg/harness.h: Add new macro to to perform vector comparisons * jit.dg/test...GitHub
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…
#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!
How (and why) nextest uses tokio :: sunshowers
How my open source test runner uses async Rust.How (and why) nextest uses tokio
Wirefish, a crossplatform packet sniffer build with Tauri!
github.com/stefanodevenuto/wir…
Discussions: discu.eu/q/github.com/stefanod…
GitHub - stefanodevenuto/wirefish: A blazingly fast multiplatform packet sniffer built with Tauri!
A blazingly fast multiplatform packet sniffer built with Tauri! - GitHub - stefanodevenuto/wirefish: A blazingly fast multiplatform packet sniffer built with Tauri!GitHub
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
Freelance-Softwareentwicklerin, C/C++/Rust (d/w/m)
This job posting is written in German. However, we all speak English here. Feel free to apply even if you don't know German. Translating this post is left as an exercise to the applicant.luto (Behind the Asteroid)
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.
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.
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. <...>
#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
GitHub - 1Password/typeshare: Typeshare is the ultimate tool for synchronizing your type definitions between Rust and other languages for seamless FFI.
Typeshare is the ultimate tool for synchronizing your type definitions between Rust and other languages for seamless FFI. - GitHub - 1Password/typeshare: Typeshare is the ultimate tool for synchron...GitHub
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…
GitHub - wolf4ood/mastodon-notifier: Mastodon desktop notification daemon
Mastodon desktop notification daemon. Contribute to wolf4ood/mastodon-notifier development by creating an account on GitHub.GitHub