Linter: Prepare the ink_linting crates for publishing#2060
Merged
jubnzv merged 12 commits intouse-ink:masterfrom Jan 15, 2024
Merged
Linter: Prepare the ink_linting crates for publishing#2060jubnzv merged 12 commits intouse-ink:masterfrom
ink_linting crates for publishing#2060jubnzv merged 12 commits intouse-ink:masterfrom
Conversation
We need this in order to publish `ink_linting` crates on crates.io, because all the dependencies must be published as well.
This is necessary, because we need all the dependencies available on crates.io to publish our crates.
To clarify the crate name when publishing on crates.io.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2060 +/- ##
==========================================
- Coverage 53.62% 53.58% -0.05%
==========================================
Files 224 224
Lines 7107 7107
Branches 3146 3146
==========================================
- Hits 3811 3808 -3
- Misses 3296 3299 +3 ☔ View full report in Codecov by Sentry. |
🦑 📈 ink! Example Contracts ‒ Changes Report 📉 🦑These are the results when building the
Link to the run | Last update: Fri Jan 12 20:15:03 CET 2024 |
SkymanOne
reviewed
Jan 13, 2024
5 tasks
Closed
Merged
Merged
|
FYI: |
Collaborator
|
@flip1995 Thanks for the notice! That's very helpful. |
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.
Summary
cargo-contractorpallet-contracts?Various improvements in
ink_lintingthat allow to publish the its crates on crates.io.This is necessary for use-ink/cargo-contract#1412.
Description
To publish
ink_lintingon crates.io, we need to prepare the Cargo workspace inlintingand resolve all local dependencies to ensure they are also publishable.The summary to the changes present here:
parity_clippy_utilscrate on crates.io and added it as a dependency toink_linting. We had to do this, because all the dependencies must be present on crates.io, but the originalclippy_utilsare not. For more context, see: Publishing `clippy_utils` on crates.io rust-lang/rust-clippy#12111 (comment) and Load lints from plugins rust-lang/rust-clippy#6746 (comment).ink_linting_utilscrate that basically contains the existing utilities functions shared between lints and wraps theparity_clippy_utilstrait.Cargo.tomlfiles to makecargo publishhappy.The
ink_lintingandink_linting_mandatorycrates are currently reserved on crates.io and could be replaced with the real ones as soon as this PR is reviewed.Checklist before requesting a review
CHANGELOG.md