瀏覽代碼

Enforce minimum supported Rust version

This instructs Cargo to immediately fail compilation if the version of
Rust is too old [1]. Hopefully, this will save someone some headache.

[1]: https://doc.rust-lang.org/cargo/reference/manifest.html#the-rust-version-field
Alex Crawford 2 年之前
父節點
當前提交
8cf8a4c967
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Cargo.toml

+ 1 - 0
Cargo.toml

@@ -2,6 +2,7 @@
 name = "smoltcp"
 version = "0.8.0"
 edition = "2018"
+rust-version = "1.60"
 authors = ["whitequark <whitequark@whitequark.org>"]
 description = "A TCP/IP stack designed for bare-metal, real-time systems without a heap."
 documentation = "https://docs.rs/smoltcp/"