Clarify wildcards in Cargo.toml
⚓ Rust 📅 2025-11-13 👤 surdeus 👁️ 4Hi there,
I'm a Rust newbie. I've seen in various Cargo.toml files that both .* and .x seem to be common wildcards for dep versions.
The asterisk wildcard is officially blessed by the Cargo docs, and there's no mention of a .x wildcard anywhere. I tried searching both this forum and Github for clarification, but did not succeed.
It seems that using .x is not uncommon, so is it an officially supported version wildcard or not? If it is, I'm happy to update the documentation to reflect this fact.
11 posts - 5 participants
🏷️ Rust_feed