-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
chore: cleanup workspace crates #8058
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -256,6 +256,20 @@ feat_os_windows_legacy = [ | |
| # * bypass/override ~ translate 'test' feature name to avoid dependency collision with rust core 'test' crate (o/w surfaces as compiler errors during testing) | ||
| test = ["uu_test"] | ||
|
|
||
| [workspace] | ||
| resolver = "3" | ||
| members = [ | ||
| ".", | ||
| "src/uu/*", | ||
| "src/uu/stdbuf/src/libstdbuf", | ||
| "src/uucore", | ||
| "src/uucore_procs", | ||
| "src/uuhelp_parser", | ||
| "tests/benches/factor", | ||
| "tests/uutests", | ||
| # "fuzz", # TODO | ||
| ] | ||
|
|
||
| [workspace.package] | ||
| authors = ["uutils developers"] | ||
| categories = ["command-line-utilities"] | ||
|
|
@@ -414,7 +428,7 @@ env = { optional = true, version = "0.1.0", package = "uu_env", path = "src/uu/e | |
| expand = { optional = true, version = "0.1.0", package = "uu_expand", path = "src/uu/expand" } | ||
| expr = { optional = true, version = "0.1.0", package = "uu_expr", path = "src/uu/expr" } | ||
| factor = { optional = true, version = "0.1.0", package = "uu_factor", path = "src/uu/factor" } | ||
| false = { optional = true, version = "0.1.0", package = "uu_false", path = "src/uu/false" } | ||
| "false" = { optional = true, version = "0.1.0", package = "uu_false", path = "src/uu/false" } | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm, it worked before right? Are toml keys not guaranteed to be strings? I think they should be according to https://toml.io/en/v1.0.0#keys |
||
| fmt = { optional = true, version = "0.1.0", package = "uu_fmt", path = "src/uu/fmt" } | ||
| fold = { optional = true, version = "0.1.0", package = "uu_fold", path = "src/uu/fold" } | ||
| groups = { optional = true, version = "0.1.0", package = "uu_groups", path = "src/uu/groups" } | ||
|
|
@@ -472,7 +486,7 @@ tee = { optional = true, version = "0.1.0", package = "uu_tee", path = "src/uu/t | |
| timeout = { optional = true, version = "0.1.0", package = "uu_timeout", path = "src/uu/timeout" } | ||
| touch = { optional = true, version = "0.1.0", package = "uu_touch", path = "src/uu/touch" } | ||
| tr = { optional = true, version = "0.1.0", package = "uu_tr", path = "src/uu/tr" } | ||
| true = { optional = true, version = "0.1.0", package = "uu_true", path = "src/uu/true" } | ||
| "true" = { optional = true, version = "0.1.0", package = "uu_true", path = "src/uu/true" } | ||
| truncate = { optional = true, version = "0.1.0", package = "uu_truncate", path = "src/uu/truncate" } | ||
| tsort = { optional = true, version = "0.1.0", package = "uu_tsort", path = "src/uu/tsort" } | ||
| tty = { optional = true, version = "0.1.0", package = "uu_tty", path = "src/uu/tty" } | ||
|
|
@@ -527,7 +541,7 @@ nix = { workspace = true, features = ["process", "signal", "user", "term"] } | |
| rlimit = "0.10.1" | ||
| xattr = { workspace = true } | ||
|
|
||
| # Specifically used in test_uptime::test_uptime_with_file_containing_valid_boot_time_utmpx_record | ||
| # Specifically, used in test_uptime::test_uptime_with_file_containing_valid_boot_time_utmpx_record | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see why you would add a comma here, but I think that's not quite right. It should be read more as in "Used specifically in ..." |
||
| # to deserialize a utmpx struct into a binary file | ||
| [target.'cfg(all(target_family= "unix",not(target_os = "macos")))'.dev-dependencies] | ||
| serde = { version = "1.0.202", features = ["derive"] } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is very rarely used, why list it here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because this forces all crates to still be part of the regular compilation / validation / linting, use the same dependencies, gets regular updates, etc. I.e. prevent bitrot - unless it is not needed and should be deleted?