Skip to content

Cargo: shared workspace metadata #262

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,18 @@ members = [
"i18n"
]

[workspace.package]
repository = "https://github.com/rustcoreutils/posixutils-rs"
license = "MIT"
edition = "2021"

[workspace.dependencies]
clap = { version = "4", default-features = false, features = ["std", "derive", "help", "usage", "error-context", "cargo"] }
chrono = { version = "0.4", default-features = false, features = ["clock"] }
libc = "0.2"
regex = "1.10"
gettext-rs = { path = "./gettext-rs" }
errno = "0.3"

[workspace.lints]

7 changes: 6 additions & 1 deletion awk/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
[package]
name = "posixutils-awk"
version = "0.2.1"
edition = "2021"
repository.workspace = true
license.workspace = true
edition.workspace = true

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

[lints]
workspace = true

[[bin]]
name = "awk"
path = "src/main.rs"
7 changes: 6 additions & 1 deletion calc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
[package]
name = "posixutils-calc"
version = "0.2.1"
edition = "2021"
repository.workspace = true
license.workspace = true
edition.workspace = true

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

[lints]
workspace = true

[[bin]]
name = "expr"
path = "./expr.rs"
Expand Down
9 changes: 6 additions & 3 deletions datetime/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
name = "posixutils-datetime"
version = "0.2.1"
edition = "2021"
authors = ["Jeff Garzik"]
license = "MIT"
repository = "https://github.com/rustcoreutils/posixutils-rs.git"
repository.workspace = true
license.workspace = true
edition.workspace = true

[dependencies]
plib = { path = "../plib" }
Expand All @@ -13,6 +13,9 @@ gettext-rs.workspace = true
chrono.workspace = true
libc.workspace = true

[lints]
workspace = true

[[bin]]
name = "cal"
path = "./cal.rs"
Expand Down
9 changes: 6 additions & 3 deletions dev/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
name = "posixutils-dev"
version = "0.2.1"
edition = "2021"
authors = ["Jeff Garzik"]
license = "MIT"
repository = "https://github.com/rustcoreutils/posixutils-rs.git"
repository.workspace = true
license.workspace = true
edition.workspace = true

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

[lints]
workspace = true

[[bin]]
name = "nm"
path = "./nm.rs"
Expand Down
9 changes: 6 additions & 3 deletions display/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
[package]
name = "posixutils-display"
version = "0.2.1"
edition = "2021"
authors = ["Jeff Garzik"]
license = "MIT"
repository = "https://github.com/rustcoreutils/posixutils-rs.git"
repository.workspace = true
license.workspace = true
edition.workspace = true

[dependencies]
plib = { path = "../plib" }
clap.workspace = true
gettext-rs.workspace = true

[lints]
workspace = true

[[bin]]
name = "echo"
path = "./echo.rs"
Expand Down
9 changes: 6 additions & 3 deletions file/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
name = "posixutils-file"
version = "0.2.1"
edition = "2021"
authors = ["Jeff Garzik"]
license = "MIT"
repository = "https://github.com/rustcoreutils/posixutils-rs.git"
repository.workspace = true
license.workspace = true
edition.workspace = true

[dependencies]
plib = { path = "../plib" }
Expand All @@ -15,6 +15,9 @@ regex.workspace = true
walkdir = "2"
users = "0.11"

[lints]
workspace = true

[[bin]]
name = "cat"
path = "./cat.rs"
Expand Down
9 changes: 6 additions & 3 deletions fs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
[package]
name = "posixutils-fs"
version = "0.2.1"
edition = "2021"
authors = ["Jeff Garzik"]
license = "MIT"
repository = "https://github.com/rustcoreutils/posixutils-rs.git"
repository.workspace = true
license.workspace = true
edition.workspace = true

[dependencies]
plib = { path = "../plib" }
clap.workspace = true
gettext-rs.workspace = true
libc.workspace = true

[lints]
workspace = true

[[bin]]
name = "df"
path = "./df.rs"
Expand Down
9 changes: 6 additions & 3 deletions ftw/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
name = "ftw"
version = "0.2.1"
edition = "2021"
authors = ["Jeff Garzik"]
license = "MIT"
repository = "https://github.com/rustcoreutils/posixutils-rs.git"
repository.workspace = true
license.workspace = true
edition.workspace = true

[dependencies]
libc.workspace = true
Expand All @@ -13,5 +13,8 @@ errno.workspace = true
[dev-dependencies]
rand = "0.8.5"

[lints]
workspace = true

[lib]
doctest = false
7 changes: 5 additions & 2 deletions gettext-rs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
[package]
name = "gettext-rs"
version = "0.2.1"
edition = "2021"
edition.workspace = true

[lints]
workspace = true

[lib]
name = "gettextrs"
name = "gettextrs"
9 changes: 6 additions & 3 deletions i18n/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
name = "posixutils-i18n"
version = "0.2.1"
edition = "2021"
authors = ["Jeff Garzik"]
license = "MIT"
repository = "https://github.com/rustcoreutils/posixutils-rs.git"
repository.workspace = true
license.workspace = true
edition.workspace = true

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

[lints]
workspace = true

[[bin]]
name = "gencat"
path = "./gencat.rs"
18 changes: 9 additions & 9 deletions m4/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
[package]
name = "posixutils-m4"
version = "0.2.1"
edition = "2021"
description = "m4 - macro language processor"
authors = ["Luke Frisken"]
license = "MIT"
repository = "https://github.com/rustcoreutils/posixutils-rs.git"

[[bin]]
name = "m4"
path = "src/main.rs"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
repository.workspace = true
license.workspace = true
edition.workspace = true

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

[lints]
workspace = true

[[bin]]
name = "m4"
path = "src/main.rs"
5 changes: 4 additions & 1 deletion m4/test-manager/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
[package]
name = "m4-test-manager"
version = "0.1.0"
edition = "2021"
edition.workspace = true

[dependencies]
clap.workspace = true

[lints]
workspace = true
9 changes: 6 additions & 3 deletions misc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
[package]
name = "posixutils-misc"
version = "0.2.1"
edition = "2021"
authors = ["Jeff Garzik"]
license = "MIT"
repository = "https://github.com/rustcoreutils/posixutils-rs.git"
repository.workspace = true
license.workspace = true
edition.workspace = true

[dependencies]
plib = { path = "../plib" }
clap.workspace = true
libc.workspace = true
gettext-rs.workspace = true

[lints]
workspace = true

[[bin]]
name = "true"
path = "./true.rs"
Expand Down
9 changes: 6 additions & 3 deletions pathnames/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
[package]
name = "posixutils-pathnames"
version = "0.2.1"
edition = "2021"
authors = ["Jeff Garzik"]
license = "MIT"
repository = "https://github.com/rustcoreutils/posixutils-rs.git"
repository.workspace = true
license.workspace = true
edition.workspace = true

[dependencies]
plib = { path = "../plib" }
clap.workspace = true
gettext-rs.workspace = true
libc.workspace = true

[lints]
workspace = true

[[bin]]
name = "basename"
path = "./basename.rs"
Expand Down
9 changes: 6 additions & 3 deletions plib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
[package]
name = "plib"
version = "0.2.1"
edition = "2021"
authors = ["Jeff Garzik"]
license = "MIT"
repository = "https://github.com/rustcoreutils/posixutils-rs.git"
repository.workspace = true
license.workspace = true
edition.workspace = true

[dependencies]
cfg-if = "1.0"
libc.workspace = true
errno.workspace = true

[lints]
workspace = true

[lib]
doctest = false
9 changes: 6 additions & 3 deletions process/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
name = "posixutils-process"
version = "0.2.1"
edition = "2021"
authors = ["Jeff Garzik"]
license = "MIT"
repository = "https://github.com/rustcoreutils/posixutils-rs.git"
repository.workspace = true
license.workspace = true
edition.workspace = true

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

[lints]
workspace = true

[[bin]]
name = "fuser"
path = "./fuser.rs"
Expand Down
Loading