Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
sqlx
🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, and SQLite. (by launchbadge)
As long as you're compiling with a version of Rust that satisfies the requirement, it doesn't care. You can write code that uses the new formatting macros argument capturing feature and set rust-version = "1.56.0", and as long as you compile with the latest beta it's fine.
Note that only after writing all of this did I find the RFC where this feature was discussed, which was much harder than it should have been, IMO. I would love there to be a searchable index of RFCs. Github's search is very hit-or-miss. I was searching "rust-version" and got nothing because that exact terminology, even though it's what the stabilized implementation uses, isn't mentioned in the RFC at all; it was apparently changed later and the RFC was never amended.
It's fair to doubt that there will be any more work on it anytime soon. One follow-up issue was filed (https://github.com/rust-lang/cargo/issues/9930) but so far it hasn't seen much movement yet. I think an important limiting factor for this feature (and a bunch of other improvements) is that Cargo is severly under-resourced, so things don't get worked on or get worked on just slowly or it depends on a contributor stepping in to do the work (and then there might still be a substantial delay in getting feedback from the Cargo team).
We currently have something along the order of (I counted it once already while writing this but started editing another part of it and forgot) 70 separate CI passes covering various optional features. If we wanted to test with both latest stable and an MSRV, that'd be around double that, depending on if this should multiply with the matrices we already have for supported versions of the various databases.
Related posts
- Let's thank who have helped us in the Rust Community together!
- [privacy/compile-time]: Building rust/cargo projects may leak the compiler's pc username as full homedir paths are getting compiled in - even in the release (and striped) binaries. (the user supposedly distributes these binaries) Is this intended for some reason?
- Announcing Rust 1.61.0
- Announcing Rust 1.60.0
- Async Rust in 2022