T
For those unfamiliar, tokio-tun provides asynchronous bindings for allocating and working with TUN/TAP devices directly within Tokio's event loop. I’d like to share a major update that dramatically expands platform reach and performance, marking a significant milestone as the crate matures toward its v1.0 release. What’s New? 1. Cross-Platform Expansion: FreeBSD, macOS, iOS, and Android tokio-tun is no longer Linux-only. You can now build unified, cross-platform networking tools and VPN clients…
T
Tip (which you may already know): can use cargo new whatever_name_you_want to automatically create cargo projects with the correct files and directories Also the next time you run into a issue and open a forum post make sure to copy all errors you got into your post, errors are often the most important thing for diagnosing a issue.
T
Compiling the proc macros with release optimisations may make them a bit faster (rust compiles them with debug optimisations by default) # this only affects the dev profile, # you'll need to change it if you use other profiles. [profile.dev.build-override] opt-level = 3 (see We had fast proc macros all the time, or had we? for details)
T
I have an application that passes around a lot of Arc<dyn Whatever>, and many of the traits have do-nothing or default implementations on a zero-sized type that can be used in a lot of cases. Unfortunately, Arc<T>::new allocates heap memory even when T is zero-sized and doesn't need Drop. Before I go making my own, is there a common crate that can optimize the construction of real std::Arcs for these kinds of ZSTs so I don't have to suffer a heap allocation for each one?
T
Yes, but I have understood it after arguing with some LLM Ai, The answer is I was just running a standalone rust file instead of the cargo project, so I used the rustfmt and it worked! Thanks for your attention rustacean
T
Hi all, RAVET 0.1.0 is out. It's a framework for writing audio plug-ins and standalone audio apps in Rust. You write the processor and editor once, and it builds them as VST3, CLAP, LV2, Audio Unit and AAX plug-ins on macOS, Windows and Linux (AU on macOS only, and no AAX on Linux). To try it: git clone --branch v0.1.0 https://github.com/mo0kid/ravet cd ravet python3 scripts/bundle-clap.py --plugin delay That builds the example delay as a CLAP plug-in. The getting started guide covers using…
T
workingjubilee: expediently The keyword in this case to me. Expediency is so often the enemy of quality. We trusted those signals a little too much anyways, maybe this can be a good thing if it builds better habits of reading the code etc. (I chose to choose naive optimism).
T
Welcome to the forum! Are you getting an error from cargo fmt?
T
fn main() { println!("Hello, world!"); } Hello my fellow rustaceans! This is my first rust code, I needed to format this code automatically, when I run the cargo fmt it does not work or format it. Any help plz.
T
mroth: In my opinion, these so-called “signals” (in this thread) aren’t signals at all. A lot of regular updates? Either the software is buggy as hell or adapting constantly to changing requirements. Project has no "CI"? Maybe the original author use a simple git hook or shell script. A particular software is widely used? A well-known, non-open-source operating system out-performs a popular open-source one? And so on, and so on. I think one example of what used to be an honest signal is tests.…
T
workingjubilee: What they said is what they said: the usage of these agents can create signs that, due to the cost of human effort, were once honest signals. In my opinion, these so-called “signals” (in this thread) aren’t signals at all. A lot of regular updates? Either the software is buggy as hell or adapting constantly to changing requirements. Project has no "CI"? Maybe the original author use a simple git hook or shell script. A particular software is widely used? A well-known,…
T
Hi fellow rustaceans, If you are using Rust for bioinformatics, we have a dedicated dev room for bioinformatics at Fosdem next January ! It's the second year in a row and last year had a lot of interesting talks (no rust involved unfortunately). All the relevant information is here: Call for Participation: 2nd Bioinformatics and Computational Biology Developer Room at FOSDEM 2027 | fosdem-bioinformatics Don't hesitate to PM me for more information. Alexis
T
You could try using nightly and adding -Zcache-proc-macros to your RUSTFLAGS. This is supposed to cache the result of proc macros, which will avoid the compiler re-executing them and will save doing a bunch of useless work. Unfortunately I believe this is currenly implemented only for derive proc macros, so it might bring huge speed ups to Dioxus code (which I believe uses statement proc macros rather than derive proc macros).
T
bourumir-wyngs: even sound insulting like Cumberworld for instance. Wow, that's new word of the day for me. Dates back to Chaucer apparently.
T
The way I read it, you’re saying AI agents only produce low-quality work, and that a result can only be high quality (however that’s defined) when humans put a lot of manual effort into it. That is not what they said. You are attempting to misread them in a way that seems to be intentionally trying to misconstrue them or otherwise pick a fight. What they said is what they said: the usage of these agents can create signs that, due to the cost of human effort, were once honest signals. These are…
T
In general, reasoning that is conventionally accepted in C code, but is undefined or at least "implementation-defined" according to the C Standard, is far more likely to actually blow your foot off when you do the same thing with Rust code. For instance, consider the extremely long warning on mem::transmute about transmuting pointers. It is habit, in C code, to just say "pointers are funny integers" and gleefully ignore this kind of reasoning. C compilers will try to squirm around you doing…
T
Actually, you could just write your own cargo-like Rust package manager to meet this requirement. AFAIK, opus5.5 would be happy to help you with that
T
mroth: So if software gets updated all the time, doesn’t that just mean it’s full of bugs? The Steam client appears to perform near-daily background updates. As for yt-dlp, it sustains a high release cadence in order to adapt to the frequently shifting anti-scraping mechanisms employed by YouTube and similar platforms. mroth: The way I read it, you’re saying AI agents only produce low-quality work, and that a result can only be high quality (however that’s defined) when humans put a lot of…
T
This is why I mentioned it's improbable we would use the method hoelzeli outlined.
T
I think acting for the sake of acting and causing more harm by doing so is worse than nothing
T
The fact that things have always been so does not preclude us from having reasons to act and change them. Nevertheless, it remains improbable that we would resort to the method hoelzeli described above.
T
Creating a development framework It is not web framework, but just framework, for developing high performance app in Rust It is Rust no_std + custom high performance focused standard library Currently consist of : high performance allocators (big virtual address arena and double ended variant, general purpose allocator) ergonomic high performance error handling, small size enum SSO String (pointer to rodata for initial value, the pointer points to heap only if the value grow dynamically, same…
T
When you alter code that contains macros, the macros need to be re-processed in order to be sure that their output (e.g. generated impl blocks) are up to date. What you see for those couple of seconds is the kind of thing that would happen all the time if such re-processing didn't happen. The only thing is, running a macro can take an arbitrary amount of time. So bottom line: if you want up to date information in your IDE there's no getting around the fact that those macros need to be…
T
proRust: I’m not sure if there’s another structure that would work for me, or if I should change the format of how the date is written in my Markdown document. I believe the simplest approach would be to do both: First of all, if the frontmatter date field contains just a date (year, month, and day of month, no time of day), then DateTime is the wrong type to use, as it's meant for a combination of date, time of day, and timezone. chrono's NaiveDate appears to be the best type for what you're…
T
tornewuff: Now, though, LLMs are very good at producing the appearance of high effort without a human actually having to expend that effort. The way I read it, you’re saying AI agents only produce low-quality work, and that a result can only be high quality (however that’s defined) when humans put a lot of manual effort into it. But that’s wrong. Quality is measured by the end result. Sure, you can look at how something was built. How long did it take? What resources were used? What impact did…
T
Thank so much, the solution is perfect for me issue, That was a really good solution – I hadn’t thought of it that way.
T
Tedious, but this seems to do it. There may be a better way. NaiveDate::parse_from_str("6/10/2026", "%d/%m/%Y") .map(NaiveDateTime::from) .map(|dt| DateTime::<Utc>::from_naive_utc_and_offset(dt, Utc))
T
hoelzeli: Even for a separate site besides crates.io? And how would someone proof that there are no alternative ways? I cannot think of any (which is the reason why I opened this thread), but that does probably not mean that there are none I think doing nothing seems to be working fine enough at the moment? Yes there are problems with discovery, but AI content is not impeding people from using non-AI content and can be ignored. For instance, some very popular crates that have interested me use…
T
I use the Dioxus framework (https://dioxuslabs.com/) for a web front-end, but rust-analyzer and my compiler seem to struggle noticeably with the macros. i.e. deleting a single line of unused code takes several seconds to update, meanwhile the diagnostic stays visible. Does anyone have experience with this kind of problems here? I would be very glad about some recommendations