-
Notifications
You must be signed in to change notification settings - Fork 429
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
Linter: Prepare the ink_linting
crates for publishing
#2060
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 |
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.
LGTM
Summary
cargo-contract
orpallet-contracts
?Various improvements in
ink_linting
that allow to publish the its crates on crates.io.This is necessary for use-ink/cargo-contract#1412.
Description
To publish
ink_linting
on crates.io, we need to prepare the Cargo workspace inlinting
and resolve all local dependencies to ensure they are also publishable.The summary to the changes present here:
parity_clippy_utils
crate 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_utils
are 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_utils
crate that basically contains the existing utilities functions shared between lints and wraps theparity_clippy_utils
trait.Cargo.toml
files to makecargo publish
happy.The
ink_linting
andink_linting_mandatory
crates 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