Skip to content

Commit cec77a7

Browse files
authored
Merge pull request #262 from rustcoreutils/lints
Cargo: shared workspace metadata
2 parents 911d27f + 79af413 commit cec77a7

File tree

24 files changed

+146
-68
lines changed

24 files changed

+146
-68
lines changed

Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,18 @@ members = [
2727
"i18n"
2828
]
2929

30+
[workspace.package]
31+
repository = "https://github.com/rustcoreutils/posixutils-rs"
32+
license = "MIT"
33+
edition = "2021"
34+
3035
[workspace.dependencies]
3136
clap = { version = "4", default-features = false, features = ["std", "derive", "help", "usage", "error-context", "cargo"] }
3237
chrono = { version = "0.4", default-features = false, features = ["clock"] }
3338
libc = "0.2"
3439
regex = "1.10"
3540
gettext-rs = { path = "./gettext-rs" }
3641
errno = "0.3"
42+
43+
[workspace.lints]
44+

awk/Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
[package]
22
name = "posixutils-awk"
33
version = "0.2.1"
4-
edition = "2021"
4+
repository.workspace = true
5+
license.workspace = true
6+
edition.workspace = true
57

68
[dependencies]
79
plib = { path = "../plib" }
@@ -14,6 +16,9 @@ lazy_static = "1.4"
1416
lexical = { version = "6.1", features = ["format"] }
1517
rand = {version = "0.8", default-features = false, features = ["small_rng"] }
1618

19+
[lints]
20+
workspace = true
21+
1722
[[bin]]
1823
name = "awk"
1924
path = "src/main.rs"

calc/Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
[package]
22
name = "posixutils-calc"
33
version = "0.2.1"
4-
edition = "2021"
4+
repository.workspace = true
5+
license.workspace = true
6+
edition.workspace = true
57

68
[dependencies]
79
plib = { path = "../plib" }
@@ -14,6 +16,9 @@ lazy_static = "1.4"
1416
bigdecimal = "0.4"
1517
rustyline = { version = "14.0", default-features = false }
1618

19+
[lints]
20+
workspace = true
21+
1722
[[bin]]
1823
name = "expr"
1924
path = "./expr.rs"

datetime/Cargo.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[package]
22
name = "posixutils-datetime"
33
version = "0.2.1"
4-
edition = "2021"
54
authors = ["Jeff Garzik"]
6-
license = "MIT"
7-
repository = "https://github.com/rustcoreutils/posixutils-rs.git"
5+
repository.workspace = true
6+
license.workspace = true
7+
edition.workspace = true
88

99
[dependencies]
1010
plib = { path = "../plib" }
@@ -13,6 +13,9 @@ gettext-rs.workspace = true
1313
chrono.workspace = true
1414
libc.workspace = true
1515

16+
[lints]
17+
workspace = true
18+
1619
[[bin]]
1720
name = "cal"
1821
path = "./cal.rs"

dev/Cargo.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[package]
22
name = "posixutils-dev"
33
version = "0.2.1"
4-
edition = "2021"
54
authors = ["Jeff Garzik"]
6-
license = "MIT"
7-
repository = "https://github.com/rustcoreutils/posixutils-rs.git"
5+
repository.workspace = true
6+
license.workspace = true
7+
edition.workspace = true
88

99
[dependencies]
1010
plib = { path = "../plib" }
@@ -14,6 +14,9 @@ object = { version = "0.35", features = ["read", "build", "elf"]}
1414
chrono.workspace = true
1515
ar = "0.9"
1616

17+
[lints]
18+
workspace = true
19+
1720
[[bin]]
1821
name = "nm"
1922
path = "./nm.rs"

display/Cargo.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
[package]
22
name = "posixutils-display"
33
version = "0.2.1"
4-
edition = "2021"
54
authors = ["Jeff Garzik"]
6-
license = "MIT"
7-
repository = "https://github.com/rustcoreutils/posixutils-rs.git"
5+
repository.workspace = true
6+
license.workspace = true
7+
edition.workspace = true
88

99
[dependencies]
1010
plib = { path = "../plib" }
1111
clap.workspace = true
1212
gettext-rs.workspace = true
1313

14+
[lints]
15+
workspace = true
16+
1417
[[bin]]
1518
name = "echo"
1619
path = "./echo.rs"

file/Cargo.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[package]
22
name = "posixutils-file"
33
version = "0.2.1"
4-
edition = "2021"
54
authors = ["Jeff Garzik"]
6-
license = "MIT"
7-
repository = "https://github.com/rustcoreutils/posixutils-rs.git"
5+
repository.workspace = true
6+
license.workspace = true
7+
edition.workspace = true
88

99
[dependencies]
1010
plib = { path = "../plib" }
@@ -15,6 +15,9 @@ regex.workspace = true
1515
walkdir = "2"
1616
users = "0.11"
1717

18+
[lints]
19+
workspace = true
20+
1821
[[bin]]
1922
name = "cat"
2023
path = "./cat.rs"

fs/Cargo.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
[package]
22
name = "posixutils-fs"
33
version = "0.2.1"
4-
edition = "2021"
54
authors = ["Jeff Garzik"]
6-
license = "MIT"
7-
repository = "https://github.com/rustcoreutils/posixutils-rs.git"
5+
repository.workspace = true
6+
license.workspace = true
7+
edition.workspace = true
88

99
[dependencies]
1010
plib = { path = "../plib" }
1111
clap.workspace = true
1212
gettext-rs.workspace = true
1313
libc.workspace = true
1414

15+
[lints]
16+
workspace = true
17+
1518
[[bin]]
1619
name = "df"
1720
path = "./df.rs"

ftw/Cargo.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[package]
22
name = "ftw"
33
version = "0.2.1"
4-
edition = "2021"
54
authors = ["Jeff Garzik"]
6-
license = "MIT"
7-
repository = "https://github.com/rustcoreutils/posixutils-rs.git"
5+
repository.workspace = true
6+
license.workspace = true
7+
edition.workspace = true
88

99
[dependencies]
1010
libc.workspace = true
@@ -13,5 +13,8 @@ errno.workspace = true
1313
[dev-dependencies]
1414
rand = "0.8.5"
1515

16+
[lints]
17+
workspace = true
18+
1619
[lib]
1720
doctest = false

gettext-rs/Cargo.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
[package]
22
name = "gettext-rs"
33
version = "0.2.1"
4-
edition = "2021"
4+
edition.workspace = true
5+
6+
[lints]
7+
workspace = true
58

69
[lib]
7-
name = "gettextrs"
10+
name = "gettextrs"

i18n/Cargo.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[package]
22
name = "posixutils-i18n"
33
version = "0.2.1"
4-
edition = "2021"
54
authors = ["Jeff Garzik"]
6-
license = "MIT"
7-
repository = "https://github.com/rustcoreutils/posixutils-rs.git"
5+
repository.workspace = true
6+
license.workspace = true
7+
edition.workspace = true
88

99
[dependencies]
1010
plib = { path = "../plib" }
@@ -13,6 +13,9 @@ gettext-rs.workspace = true
1313
bytemuck = { version = "1.17.0", features = ["derive"] }
1414
byteorder = "1.5.0"
1515

16+
[lints]
17+
workspace = true
18+
1619
[[bin]]
1720
name = "gencat"
1821
path = "./gencat.rs"

m4/Cargo.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
[package]
22
name = "posixutils-m4"
33
version = "0.2.1"
4-
edition = "2021"
54
description = "m4 - macro language processor"
65
authors = ["Luke Frisken"]
7-
license = "MIT"
8-
repository = "https://github.com/rustcoreutils/posixutils-rs.git"
9-
10-
[[bin]]
11-
name = "m4"
12-
path = "src/main.rs"
13-
14-
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
6+
repository.workspace = true
7+
license.workspace = true
8+
edition.workspace = true
159

1610
[dependencies]
1711
clap.workspace = true
@@ -33,3 +27,9 @@ test-log = { version = "0.2", default-features=false, features=["log"]}
3327
[build-dependencies]
3428
m4-test-manager = { path = "./test-manager" }
3529

30+
[lints]
31+
workspace = true
32+
33+
[[bin]]
34+
name = "m4"
35+
path = "src/main.rs"

m4/test-manager/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
[package]
22
name = "m4-test-manager"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition.workspace = true
55

66
[dependencies]
77
clap.workspace = true
8+
9+
[lints]
10+
workspace = true

misc/Cargo.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
[package]
22
name = "posixutils-misc"
33
version = "0.2.1"
4-
edition = "2021"
54
authors = ["Jeff Garzik"]
6-
license = "MIT"
7-
repository = "https://github.com/rustcoreutils/posixutils-rs.git"
5+
repository.workspace = true
6+
license.workspace = true
7+
edition.workspace = true
88

99
[dependencies]
1010
plib = { path = "../plib" }
1111
clap.workspace = true
1212
libc.workspace = true
1313
gettext-rs.workspace = true
1414

15+
[lints]
16+
workspace = true
17+
1518
[[bin]]
1619
name = "true"
1720
path = "./true.rs"

pathnames/Cargo.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
[package]
22
name = "posixutils-pathnames"
33
version = "0.2.1"
4-
edition = "2021"
54
authors = ["Jeff Garzik"]
6-
license = "MIT"
7-
repository = "https://github.com/rustcoreutils/posixutils-rs.git"
5+
repository.workspace = true
6+
license.workspace = true
7+
edition.workspace = true
88

99
[dependencies]
1010
plib = { path = "../plib" }
1111
clap.workspace = true
1212
gettext-rs.workspace = true
1313
libc.workspace = true
1414

15+
[lints]
16+
workspace = true
17+
1518
[[bin]]
1619
name = "basename"
1720
path = "./basename.rs"

plib/Cargo.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
[package]
22
name = "plib"
33
version = "0.2.1"
4-
edition = "2021"
54
authors = ["Jeff Garzik"]
6-
license = "MIT"
7-
repository = "https://github.com/rustcoreutils/posixutils-rs.git"
5+
repository.workspace = true
6+
license.workspace = true
7+
edition.workspace = true
88

99
[dependencies]
1010
cfg-if = "1.0"
1111
libc.workspace = true
1212
errno.workspace = true
1313

14+
[lints]
15+
workspace = true
16+
1417
[lib]
1518
doctest = false

process/Cargo.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[package]
22
name = "posixutils-process"
33
version = "0.2.1"
4-
edition = "2021"
54
authors = ["Jeff Garzik"]
6-
license = "MIT"
7-
repository = "https://github.com/rustcoreutils/posixutils-rs.git"
5+
repository.workspace = true
6+
license.workspace = true
7+
edition.workspace = true
88

99
[dependencies]
1010
plib = { path = "../plib" }
@@ -20,6 +20,9 @@ tokio = { version = "1.39", features = ["net", "macros", "rt"]}
2020
[build-dependencies]
2121
bindgen = { version = "0.70.0", features = ["runtime"] }
2222

23+
[lints]
24+
workspace = true
25+
2326
[[bin]]
2427
name = "fuser"
2528
path = "./fuser.rs"

0 commit comments

Comments
 (0)