Conversation
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 <azriel91@gmail.com>"]' '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
```
This file contains hidden or 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
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.