Browse Source

use workspace inheritance (#1142)

pull/1138/head
Ossama Hjaji 2 years ago committed by GitHub
parent
commit
83462df56b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 37
      Cargo.toml
  2. 13
      ascii/Cargo.toml
  3. 17
      image/Cargo.toml
  4. 15
      manifest/Cargo.toml

37
Cargo.toml

@ -1,27 +1,40 @@
[package] [package]
authors = ["o2sh <ossama-hjaji@live.fr>"] authors.workspace = true
edition.workspace = true
version.workspace = true
license.workspace = true
repository.workspace = true
categories = ["command-line-utilities"] categories = ["command-line-utilities"]
description = "Command-line Git information tool" description = "Command-line Git information tool"
edition = "2021"
exclude = ["docs/vercel/*"] exclude = ["docs/vercel/*"]
keywords = ["git", "cli", "terminal"] keywords = ["git", "cli", "terminal"]
license = "MIT"
name = "onefetch" name = "onefetch"
readme = "README.md"
repository = "https://github.com/o2sh/onefetch"
homepage = "https://onefetch.dev" homepage = "https://onefetch.dev"
rust-version = "1.65.0" rust-version = "1.70.0"
version = "2.18.1"
[workspace] [workspace]
members = ["ascii", "image", "manifest"] members = ["ascii", "image", "manifest"]
[dependencies] [workspace.package]
authors = ["o2sh <ossama-hjaji@live.fr>"]
edition = "2021"
license = "MIT"
version = "2.18.1"
repository = "https://github.com/o2sh/onefetch"
[workspace.dependencies]
owo-colors = "3.5.0"
anyhow = "1.0" anyhow = "1.0"
clap = { version = "4.3.19", features = ["derive"] }
image = "0.24.6"
strum = { version = "0.25.0", features = ["derive"] }
[dependencies]
anyhow.workspace = true
askalono = "0.4.6" askalono = "0.4.6"
byte-unit = "4.0.19" byte-unit = "4.0.19"
bytecount = "0.6.3" bytecount = "0.6.3"
clap = { version = "4.3.19", features = ["derive"] } clap.workspace = true
clap_complete = "4.3.2" clap_complete = "4.3.2"
crossbeam-channel = "0.5.8" crossbeam-channel = "0.5.8"
gix-features-for-configuration-only = { package = "gix-features", version = "0.31.0", features = [ gix-features-for-configuration-only = { package = "gix-features", version = "0.31.0", features = [
@ -33,19 +46,19 @@ gix = { version = "0.49.1", default-features = false, features = [
git2 = { version = "0.17.2", default-features = false } git2 = { version = "0.17.2", default-features = false }
globset = "0.4.13" globset = "0.4.13"
human-panic = "1.1.5" human-panic = "1.1.5"
image = "0.24.6" image.workspace = true
num-format = "0.4.4" num-format = "0.4.4"
onefetch-ascii = { path = "ascii", version = "2.18.1" } onefetch-ascii = { path = "ascii", version = "2.18.1" }
onefetch-image = { path = "image", version = "2.18.1" } onefetch-image = { path = "image", version = "2.18.1" }
onefetch-manifest = { path = "manifest", version = "2.18.1" } onefetch-manifest = { path = "manifest", version = "2.18.1" }
owo-colors = "3.5.0" owo-colors.workspace = true
regex = "1.9.3" regex = "1.9.3"
serde = "1.0" serde = "1.0"
serde_json = "1.0" serde_json = "1.0"
serde_yaml = "0.9.25" serde_yaml = "0.9.25"
# TODO With the new value parsers, we're really close to being able to eliminate # TODO With the new value parsers, we're really close to being able to eliminate
# the strum dependency # the strum dependency
strum = { version = "0.25.0", features = ["derive"] } strum.workspace = true
time = { version = "0.3.25", features = ["formatting"] } time = { version = "0.3.25", features = ["formatting"] }
time-humanize = { version = "0.1.3", features = ["time"] } time-humanize = { version = "0.1.3", features = ["time"] }
tokei = "12.1.2" tokei = "12.1.2"

13
ascii/Cargo.toml

@ -1,12 +1,11 @@
[package] [package]
authors = ["o2sh <ossama-hjaji@live.fr>"] authors.workspace = true
edition.workspace = true
version.workspace = true
license.workspace = true
repository.workspace = true
name = "onefetch-ascii" name = "onefetch-ascii"
description = "Display colorized ascii art to the terminal" description = "Display colorized ascii art to the terminal"
version = "2.18.1"
edition = "2021"
license = "MIT"
readme = "README.md"
repository = "https://github.com/o2sh/onefetch"
[dependencies] [dependencies]
owo-colors = "3.5.0" owo-colors.workspace = true

17
image/Cargo.toml

@ -1,17 +1,16 @@
[package] [package]
authors = ["o2sh <ossama-hjaji@live.fr>"] authors.workspace = true
edition.workspace = true
version.workspace = true
license.workspace = true
repository.workspace = true
name = "onefetch-image" name = "onefetch-image"
description = "Display images in the terminal" description = "Display images in the terminal"
version = "2.18.1"
edition = "2021"
license = "MIT"
readme = "README.md"
repository = "https://github.com/o2sh/onefetch"
[dependencies] [dependencies]
anyhow = "1.0" anyhow.workspace = true
clap = { version = "4.3.19", features = ["derive"] } clap.workspace = true
image = "0.24.6" image.workspace = true
[target.'cfg(not(windows))'.dependencies] [target.'cfg(not(windows))'.dependencies]
color_quant = "1.1.0" color_quant = "1.1.0"

15
manifest/Cargo.toml

@ -1,15 +1,14 @@
[package] [package]
authors = ["o2sh <ossama-hjaji@live.fr>"] authors.workspace = true
edition.workspace = true
version.workspace = true
license.workspace = true
repository.workspace = true
name = "onefetch-manifest" name = "onefetch-manifest"
description = "Detect and parse manifest files" description = "Detect and parse manifest files"
version = "2.18.1"
edition = "2021"
license = "MIT"
readme = "README.md"
repository = "https://github.com/o2sh/onefetch"
[dependencies] [dependencies]
anyhow = "1.0" anyhow.workspace = true
cargo_toml = "0.15.3" cargo_toml = "0.15.3"
npm-package-json = "0.1.3" npm-package-json = "0.1.3"
strum = { version = "0.25.0", features = ["derive"] } strum.workspace = true

Loading…
Cancel
Save