Skip to content

Commit 28c6685

Browse files
Deduplicate edition and license keys in Cargo.toml
Add edition/license keys to workspace.package, and use those values in ext4-view and xtask. This will make adding additional packages slightly nicer, and allow changing the edition in just one place when we upgrade to 2024.
1 parent 0b3e59b commit 28c6685

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

Cargo.toml

+6-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
[package]
1010
name = "ext4-view"
1111
version = "0.9.1"
12-
edition = "2021"
13-
license = "MIT OR Apache-2.0"
12+
edition.workspace = true
13+
license.workspace = true
1414
repository = "https://github.com/nicholasbishop/ext4-view-rs"
1515
categories = ["filesystem", "embedded", "no-std"]
1616
description = "No-std compatible Rust library for reading ext2/ext4 filesystems"
@@ -27,6 +27,10 @@ include = [
2727
[workspace]
2828
members = ["xtask"]
2929

30+
[workspace.package]
31+
edition = "2021"
32+
license = "MIT OR Apache-2.0"
33+
3034
[workspace.dependencies]
3135
anyhow = { version = "1.0.0", features = ["backtrace"] }
3236

xtask/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
[package]
1010
name = "xtask"
1111
version = "0.0.0"
12-
edition = "2021"
13-
license = "MIT OR Apache-2.0"
12+
edition.workspace = true
13+
license.workspace = true
1414
publish = false
1515
default-run = "xtask"
1616

0 commit comments

Comments
 (0)