Our great sponsors
Analysis of various tricky Rust code
Addendum: Technically there are various hacks out in the wild that can get something like this working using macros, but their usefulness is more limited. Once generics are in play, they stop working for the same reason and you are back to square one. Such approaches include autoref specialization which (ab)uses type inferrence to select different methods with the same name (kind of similar to what you seemed to be trying to do) and OIBIT specialization, which relies on a different nightly feature.
Empowering everyone to build reliable and efficient software.
TcpBuilder::listen() provides the backlog parameter which is not exposed by TcpListener::bind(); instead, it looks like they chose the magic number 128 so that's what I used here to reproduce the std behavior (there's no comment as to why this value was chosen, I assume it's just one that "felt right"): https://github.com/rust-lang/rust/blob/master/library/std/src/sys_common/net.rs#L386
Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.
Ergonomic bindings to SQLite for Rust
I want to use arrays in sqlite but the documentations for rusqlite doesn't have examples of how to use the extra array feature. How do I store and search text arrays in rusqlite?
The Rust package manager
AFAIK cargo install uses the default feature set i.e. sse2. It was decided against using target-cpu=native by default https://github.com/rust-lang/cargo/issues/4150.
RFCs for changes to Rust (by withoutboats)
I'm not qualified to give an in-depth answer, but the short answer is that you can't. This has been proposed and postponed: Link
“Zero setup” cross compilation and “cross testing” of Rust crates
I've used cargo cross before with good results. It spins up a docker container to test your code on a remote target. Should be a bit simpler than relying on raw docker builds for a quick test cycle.
The Rust Programming Language
The official Rust book is available online and very good.
Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.
Cross-platform Rust rewrite of the GNU coreutils
need a review on this https://github.com/uutils/coreutils/pull/1791
Rust bindings for OpenCV 3 & 4
I added opencv-rust as a dependency to a project. It makes my builds and even cargo check s really slow. It seems to invoke the build.rs script every time even when just type checking. Is this intentional? Is there any way to avoid this?
Improving Rust compile times to enable adoption of memory safety
8 projects | news.ycombinator.com | 3 Feb 2023
Hey Rustaceans! Got a question? Ask here! (39/2022)!
11 projects | /r/rust | 26 Sep 2022
[Code review request] What would you do differently in my security-related Rust projects?
4 projects | /r/rust | 17 Sep 2022
Hey Rustaceans! Got a question? Ask here! (37/2022)!
12 projects | /r/rust | 12 Sep 2022
Trying to run cargo install but the crates.io registry is stale
3 projects | /r/rust | 6 Aug 2022