Our great sponsors
-
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.
-
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
-
SonarQube
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.
-
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?
-
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.
-
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
-
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 official Rust book is available online and very good.
-
InfluxDB
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.
-
need a review on this https://github.com/uutils/coreutils/pull/1791
-
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?
Related posts
- Improving Rust compile times to enable adoption of memory safety
- Hey Rustaceans! Got a question? Ask here! (39/2022)!
- [Code review request] What would you do differently in my security-related Rust projects?
- Hey Rustaceans! Got a question? Ask here! (37/2022)!
- Trying to run cargo install but the crates.io registry is stale