Tux Machines

Rust Issue With Dependencies

Posted by Roy Schestowitz on May 01, 2023

=> Security Leftovers | MenuLibre 2.3.1 Released

Junichi Uekawa: Lots of Windows dependencies in Debian Rust packages.

=> ↺ Junichi Uekawa: Lots of Windows dependencies in Debian Rust packages.

Lots of Windows dependencies in Debian Rust packages. As cargo tries to check even the optional dependencies exist, Debian has lots of rust packages that are not needed on Debian platforms. I would think it would be okay to have a stub that mirrors the version number but nothing else, but...

Matthew Palmer: dev-dependencies and Rust's unused_crate_dependencies lint

=> ↺ Matthew Palmer: dev-dependencies and Rust's unused_crate_dependencies lint

I’m in the process of getting super-strict about the code quality of cretrit, the comparison-revealing encryption library that underlies the queryable encryption of the Enquo project. While I’m going to write a whole big thing about Rust linting in the future, I bumped across a rather gnarly problem that I thought was worth sharing separately. The problem, in short, is that the unused_crate_dependencies lint interacts badly with crates that are only needed for benchmarking, such as (in my case) criterion.

=> ↺ cretrit | ↺ queryable encryption | ↺ the Enquo project | ↺ unused_crate_dependencies lint | ↺ criterion

=> ↺ cretrit | ↺ queryable encryption | ↺ the Enquo project | ↺ unused_crate_dependencies lint | ↺ criterion

=> gemini.tuxmachines.org

Proxy Information
Original URL
gemini://gemini.tuxmachines.org/n/2023/05/01/Rust_Issue_With_Dependencies.gmi
Status Code
Success (20)
Meta
text/gemini;lang=en-GB
Capsule Response Time
141.992088 milliseconds
Gemini-to-HTML Time
1.075913 milliseconds

This content has been proxied by September (3851b).