Update to 2021 edition (#3217)

..and also include the rust-version property in the taskchampion crate.
This commit is contained in:
Dustin J. Mitchell 2023-12-24 08:58:04 -05:00 committed by GitHub
parent b52248f146
commit 1380d79148
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 9 additions and 6 deletions

View file

@ -8,6 +8,8 @@ members = [
"taskchampion/xtask",
]
resolver = "2"
# src/tc/rust is just part of the TW build and not a public crate
exclude = [ "src/tc/rust" ]

View file

@ -2,7 +2,7 @@
name = "integration-tests"
version = "0.4.1"
authors = ["Dustin J. Mitchell <dustin@mozilla.com>"]
edition = "2018"
edition = "2021"
publish = false
build = "build.rs"

View file

@ -1,7 +1,7 @@
[package]
name = "taskchampion-lib"
version = "0.1.0"
edition = "2018"
edition = "2021"
[dependencies]
libc.workspace = true

View file

@ -2,7 +2,7 @@
name = "taskchampion-sync-server"
version = "0.4.1"
authors = ["Dustin J. Mitchell <dustin@mozilla.com>"]
edition = "2018"
edition = "2021"
publish = false
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View file

@ -8,7 +8,8 @@ documentation = "https://docs.rs/crate/taskchampion"
repository = "https://github.com/GothenburgBitFactory/taskwarrior"
readme = "../README.md"
license = "MIT"
edition = "2018"
edition = "2021"
rust-version = "1.65"
[features]
default = ["server-sync" ]

View file

@ -1,8 +1,7 @@
[package]
name = "xtask"
version = "0.4.1"
edition = "2018"
# rust-version = "1.65" # Used for testing xtask MSRV functionality
edition = "2021"
[dependencies]
anyhow.workspace = true

View file

@ -22,6 +22,7 @@ const MSRV_PATH_REGEX: &[(&str, &str)] = &[
"taskchampion/src/lib.rs",
r#"Rust version [0-9.]* and higher"#,
),
("taskchampion/Cargo.toml", r#"^rust-version = "[0-9.]"#),
];
pub fn main() -> anyhow::Result<()> {