Skip to content

Commit

Permalink
Update to 2021 edition
Browse files Browse the repository at this point in the history
..and also include the rust-version property in the taskchampion crate.
  • Loading branch information
djmitche committed Dec 23, 2023
1 parent 1c11f8b commit 7b150c7
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 6 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]

Expand Down
2 changes: 1 addition & 1 deletion taskchampion/integration-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "integration-tests"
version = "0.4.1"
authors = ["Dustin J. Mitchell <[email protected]>"]
edition = "2018"
edition = "2021"
publish = false
build = "build.rs"

Expand Down
2 changes: 1 addition & 1 deletion taskchampion/lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "taskchampion-lib"
version = "0.1.0"
edition = "2018"
edition = "2021"

[dependencies]
libc.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion taskchampion/sync-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "taskchampion-sync-server"
version = "0.4.1"
authors = ["Dustin J. Mitchell <[email protected]>"]
edition = "2018"
edition = "2021"
publish = false

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
3 changes: 2 additions & 1 deletion taskchampion/taskchampion/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

[dependencies]
uuid.workspace = true
Expand Down
3 changes: 1 addition & 2 deletions taskchampion/xtask/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions taskchampion/xtask/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<()> {
Expand Down

0 comments on commit 7b150c7

Please sign in to comment.