Mo Bitar :ferris: on Nostr: Did you know about the `rust-version` field in the Cargo.toml file? 🤔 It specifies ...
Did you know about the `rust-version` field in the Cargo.toml file? 🤔
It specifies the minimum Rust version that your crate supports.
If users try to compile your crate with an older version, Cargo will give them a helpful error message ❗️
This avoids confusing errors that are caused by the usage of new language features 😅
Guilty of not using it in #Rustlings until now 😬
#RustLang
Published at
2024-08-02 14:52:33Event JSON
{
"id": "6c08dc477de889778318dba51d80d8427915009c1a15992e1041aa7d29149537",
"pubkey": "979383f8767c5d795fcad86f82dc7b38b384c1a473710c433014dc2c0fb0e359",
"created_at": 1722610353,
"kind": 1,
"tags": [
[
"t",
"rustlings"
],
[
"t",
"rustlang"
],
[
"proxy",
"https://fosstodon.org/users/mo8it/statuses/112892992138422922",
"activitypub"
]
],
"content": "Did you know about the `rust-version` field in the Cargo.toml file? 🤔\n\nIt specifies the minimum Rust version that your crate supports.\n\nIf users try to compile your crate with an older version, Cargo will give them a helpful error message ❗️\n\nThis avoids confusing errors that are caused by the usage of new language features 😅\n\nGuilty of not using it in #Rustlings until now 😬\n\n#RustLang",
"sig": "0ad8b64863221f03c2e5eba0a2702c8fd7ac2c7e9955aa0f13be1a1a3f56b36201b775ba5c1eb7f0d28e46a589209b96d6381132e6f3ae369a50f8c8ca55b739"
}