-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Update dependencies and consolidate crate metadata into workspace Cargo.toml
#129
Merged
azriel91
merged 8 commits into
main
from
maintenance/128/update-and-use-workspace-dependencies
Jun 5, 2023
Merged
Update dependencies and consolidate crate metadata into workspace Cargo.toml
#129
azriel91
merged 8 commits into
main
from
maintenance/128/update-and-use-workspace-dependencies
Jun 5, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Used the following script: ```bash \# Replace package fields fd -Ftf Cargo.toml --exclude examples -x sd '^version = "0\.0\.10"$' 'version.workspace = true' fd -Ftf Cargo.toml --exclude examples -x sd -s 'authors = ["Azriel Hoh <[email protected]>"]' 'authors.workspace = true' fd -Ftf Cargo.toml --exclude examples -x sd -s 'edition = "2021"' 'edition.workspace = true' fd -Ftf Cargo.toml --exclude examples -x sd -s 'repository = "https://github.com/azriel91/peace"' 'repository.workspace = true homepage.workspace = true' fd -Ftf Cargo.toml --exclude examples -x sd '^readme = .+' 'readme.workspace = true' fd -Ftf Cargo.toml --exclude examples -x sd '^categories = .+' 'categories.workspace = true' fd -Ftf Cargo.toml --exclude examples -x sd '^keywords = .+' 'keywords.workspace = true' fd -Ftf Cargo.toml --exclude examples -x sd '^license = .+' 'license.workspace = true' \# Move description and documentation fields under `name` fd -Ftf Cargo.toml --exclude examples -x bash -c " cat << EOF | ed -sE {} /^name/ ka /^description/ m'a ka /^documentation/ m'a w EOF " ```
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## main #129 +/- ##
=======================================
Coverage 90.83% 90.83%
=======================================
Files 335 334 -1
Lines 30403 30403
=======================================
Hits 27618 27618
Misses 2785 2785 ☔ View full report in Codecov by Sentry. |
Script used: ```bash \# Replace `peace` dependencies in `Cargo.toml`s fd -Ftf Cargo.toml --exclude examples -x \ sd '\{ path = "([a-z_/.]+)", version = "0\.0\.10"([^}]+)\}' '{ workspace = true$2}' fd -Ftf Cargo.toml --exclude examples -x \ sd '\{ version = "0\.0\.10", path = "([a-z_/.]+)"([^}]+)\}' '{ workspace = true$2}' \# Replace simple version dependencies in `Cargo.toml`s fd -Ftf Cargo.toml --exclude examples -x \ sd '^([a-z-_0-9]+) = ("[0-9.]+")' '$1 = { workspace = true }' \# Replace complex version dependencies in `Cargo.toml`s fd -Ftf Cargo.toml --exclude examples -x \ sd '^([a-z-_0-9]+) = \{ version = "[0-9.]+"([^}]+)\}' '$1 = { workspace = true$2}' \# Put back version and edition values fd -Ftf Cargo.toml --exclude examples -x sd -s 'edition = { workspace = true }' 'edition = "2021"' sd -s 'version = { workspace = true }' 'version = "0.0.10"' Cargo.toml ```
azriel91
deleted the
maintenance/128/update-and-use-workspace-dependencies
branch
June 5, 2023 00:02
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #128.
See linked issue for scripts used to do this work.