- blog.rust-lang.org This Development-cycle in Cargo: 1.80 | Inside Rust Blog
Want to follow along with Rust development? Curious how you might get involved? Take a look!
- blog.rust-lang.org Announcing Rust 1.79.0 | Rust Blog
Empowering everyone to build reliable and efficient software.
-
JFC. When will open source projects like @rustlang learn that putting toxic people like this in positions of ANY authority is unacceptable. [https://github.com/marsha
JFC. When will open source projects like @rustlang learn that putting toxic people like this in positions of ANY authority is unacceptable. https://github.com/marshallpierce/rust-base64/issues/213 . He's showing you who he is, and you're not listening.
- www.timdbg.com Writing a Debugger From Scratch - DbgRs Part 5 - Breakpoints
(New to this series? Consider starting from part 1) At the end of the last post, we started to get some interesting functionality with the ability to resolve addresses to names in a module. This was the last functionality missing before we could implement breakpoints! This part adds the ability for ...
-
Qualifying Rust without forking
ferrous-systems.com Qualifying Rust without forking - Ferrous SystemsBerlin based technology consultancy specialising in the Rust programming language. We offer development, implementation, training and long-term support.
- harrystern.net Yet another E-Ink weather display - but with Rust!
I made one of those e-ink weather displays that you see on tech blogs and hacker news sometimes. It can display the current weather, the temperature and precipitation forecast for the rest of the week, and my current and upcoming tasks from Todoist. It's powered by a couple NiMH AA …
-
The State of Async Rust
corrode.dev The State of Async Rust: RuntimesRecently, I found myself returning to a compelling series of blog posts titled Zero-cost futures in Rust by Aaron Turon about what would become the foundation of Rust's async ecosyste…
-
Leveraging Rust in our high-performance Java database
questdb.io Leveraging Rust in our high-performance Java database | QuestDBA guide to adding Rust to a Java codebase with JNI and the rust-maven-plugin.
-
https://crates.io/crates/syslog-ng-common/0.7.0
The colleague, who added @rustlang support to #syslog\_ng left many years ago. Syslog-ng #Rust support was last touched 7 years ago. Still, there are regular downloads. Just #searchengines or there are real users? Does it actually work?
-
Stabilization PR for
async fn
in traitsgithub.com Stabilize `async fn` and return-position `impl Trait` in trait by compiler-errors · Pull Request #115822 · rust-lang/rustStabilization report This report proposes the stabilization of #![feature(return_position_impl_trait_in_trait)] (RPITIT) and #![feature(async_fn_in_trait)] (AFIT). These are both long awaited featu...
- bitbashing.io Async Rust Is A Bad Language
Yet another programming blog. Thoughts on software and related misadventures.
-
Looking for graph tui
I'm working on a cli for a service I've made that maintains a node edge graph (think neo4j type thing). I want to be able to display a graph in the terminal in a sort of ascii art text form kinda like git log -graph. I haven't found any third part libraries that can do that and am looking for help.
-
Change in Guidance on Committing Lockfiles
blog.rust-lang.org Change in Guidance on Committing Lockfiles | Rust BlogEmpowering everyone to build reliable and efficient software.
- blog.erlend.sh Transitioning /r/rust to the Threadiverse
Three months ago I submitted a post to the Rust sub-reddit called 'Building a better /r/rust together'. It quickly rose to the top and ga...
Cross-posted to Reddit: https://www.reddit.com/r/rust/comments/162keij/transitioning_rrust_to_the_threadiverse/
-
Serde: from-source
serde_derive
restored on all platformsgithub.com Release v1.0.184 · serde-rs/serdeRestore from-source serde_derive build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
-
Potential shitstorm brewing over ubiquitous serde crate
github.com using serde_derive without precompiled binary · Issue #2538 · serde-rs/serdeI'm working on packaging serde for Fedora Linux, and I noticed that recent versions of serde_derive ship a precompiled binary now. This is problematic for us, since we cannot, under no circumstance...
serde_derive
now ships a precompiled binary. This made a lot of people angry. The crate maintainer finally locked the issue. -
std::any::Any for slices?
I recently ran into an issue where I wanted to use
Any
for slices. However, it only allows'static
types (based on what I read, this is because you get the sameTypeId
regardless of lifetimes).I came up with this workaround which I think is safe:
```rust use std::{ any::{Any, TypeId}, marker::PhantomData, };
#[derive(Clone, Debug)] pub struct AnySlice<'a> { tid: TypeId, len: usize, ptr: *const (), marker: PhantomData<&'a ()>, }
impl<'a> AnySlice<'a> { pub fn from_slice(s: &'a [T]) -> Self { Self { len: s.len(), ptr: s.as_ptr() as *const (), tid: TypeId::of::(), marker: PhantomData, } }
pub fn as_slice(&self) -> Option<&'a [T]> { if TypeId::of::() != self.tid { return None; } Some(unsafe { std::slice::from_raw_parts(self.ptr as *const T, self.len) }) }
pub fn is(&self) -> bool { TypeId::of::() == self.tid } } ```
edit: Unfortunately it seems like Lemmy insists on mangling the code block. See the playground link below.
T: Any
ensuresT
is also'static
. The lifetime is preserved withPhantomData
. Here's a playground link with some simple tests and a mut version: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=3116a404c28317c46dbba6ed6824c8a9It seems to pass Miri, including the mut version (which requires a bit more care to ensure there can only be one mutable reference). Any problems with doing this?
- users.rust-lang.org New features on lib.rs
I've implemented a few new things on lib.rs recently! New features page It lists all cargo features that a crate supports. It includes comments from Cargo.toml, neatly formatted as markdown, so you can learn what the features do. Since comments on features are rare, I also search crate's source co...
cross-posted from: https://programming.dev/post/1825728
> Lots of new features! > > Thought I should share this with those who don't use users.rust-lang.org. Note: I'm not affiliated with lib.rs, I'm only reposting to lemmy.
- bevyengine.org Bevy's Third Birthday
Bevy is a refreshingly simple data-driven game engine built in Rust. It is free and open-source forever!
-
2022 Annual Rust Survey Results
blog.rust-lang.org 2022 Annual Rust Survey Results | Rust BlogEmpowering everyone to build reliable and efficient software.
-
Cackle: A code ACL checker for Rust
github.com GitHub - davidlattimore/cackleContribute to davidlattimore/cackle development by creating an account on GitHub.
> Cackle is a tool to analyse the transitive dependencies of your crate to see what kinds of APIs each crate uses.
> The idea is look for crates that are using APIs that you don't think they should be using. For example a crate that from its description should just be doing some data processing, but is actually using network APIs.
- blog.rust-lang.org July 2023 Leadership Council Update | Inside Rust Blog
Want to follow along with Rust development? Curious how you might get involved? Take a look!
-
Tips for Rust programmers, on the fediverse
octodon.social Rust tips (@[email protected])123 Posts, 1 Following, 2.59K Followers · How to be productive in #Rustlang. Unofficial. By @[email protected]
-
Admarus - A Peer-to-Peer Search Engine for IPFS
github.com GitHub - Mubelotix/admarus: Peer-to-peer Search Engine for IPFSPeer-to-peer Search Engine for IPFS. Contribute to Mubelotix/admarus development by creating an account on GitHub.
I’ve been working on a new search engine system that’s fully peer-to-peer, with no trusted third party.
The goal is the index IPFS, a torrent-like file sharing system for all kinds of media
It's written in Rust using libp2p. There is a daemon but it will eventually run in the browser with wasm
-
Libs.rs is now closed source
gitlab.com Files · main · lib.rs / Lib.rs 🔰 main project · GitLabSTART HERE. This is the top-level project for lib.rs that connects all the repositories together.
Previously: https://lemmyrs.org/post/175672
> I originally had sources and data of the site public, hoping they would be interesting to study, aid in bug reporting, bring contributions, and make site's algorithms transparent.
> Instead, I got knee-jerk reactions about lines of code taken out of context. I got angry dogpiles from the Rust community, including rust-lang org members. I don't need to endure such mudslinging. Therefore, the sources are no longer available.
As of right now
bitcoin
crate is not deprecated, instead libs.rs responds with error 502. -
Problems with borrowing Traits
crosspostato da: https://lemmy.world/post/1916287
> > > Hi everybody, I'm new to Rust. > > So, I have a struct
Panel
which contains a datawidget
which implements the traitWidget
> I have to implement a function forPanel
that uses another function that requires a type that implementsWidget
. > > I triedBox<T>
,Rc<T>
,Box<dyn Widget
,&T
, but nothing, always compiler errors. > > How can I fix this? -
Ferrocene - ISO 26262 and IEC 61508 Qualified Rust Compiler
ferrous-systems.com Ferrocene - Ferrous SystemsBerlin based technology consultancy specialising in the Rust programming language. We offer development, implementation, training and long-term support.
-
Rust’s Runtime
blog.mgattozzi.dev Rust's RuntimeRust has a runtime. No really it does! I blew past that aspect in my most recent post "Oxidizing the technical interview" [https://blog.mgattozzi.dev/oxidizing-the-technical-interview/] when I put in the line: > The greatest trick the Devil ever played was convincing C and Rust programmers their la...
-
Allowing to add functionalities in Rust
Hi, I Just started working on a Emacs-inspired text editor in Rust.
Being insipred by Emacs, the most important part Is the possibiliy to implement new components.
My ideas were:
- Rust-based scripting language, like Rhai
- RustPython (slower, but more compatible and lots of people know Python)
- PyO3 (Bigger executable and not that fast)
- Wasm/Wasi (Cross-platform, but I don't know if the compatibility with Rust's hosted functions and structs is good)
- Other binded language, like V8, Lua or SpiderMonkey
- Compiled plugins, like .so or .DLL (Fast, but not compatible; there should be Rust plugin frameworks for implementing this, but I don't remember the name)
The elements to analyze are: speednees (consider it's a text editor, so...), easy-to-develop and Cross-platform (if possible, not that important), but the possibility to execute functions in the host Rust program is EXTREMELY important.
Thoughts?
Thanks in Advance.