Skip to content
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

clippy: allow running without cross toolchain #1243

Merged
merged 6 commits into from
Apr 8, 2025

Conversation

tamird
Copy link
Member

@tamird tamird commented Apr 6, 2025

  • Remove stale comments
  • Use nul bytes as delimiters
  • Revert "ci: download gen_init_cpio with authentication"
  • test-distro: extract common decompression code
  • test-distro: reduce indentation
  • test-distro: build without cross toolchain

This change is Reviewable

tamird added 2 commits April 2, 2025 10:41
Upstream isn't planning to do this.
@tamird tamird requested a review from dave-tucker April 6, 2025 14:34
Copy link

netlify bot commented Apr 6, 2025

Deploy Preview for aya-rs-docs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 92a5ee2
🔍 Latest deploy log https://app.netlify.com/sites/aya-rs-docs/deploys/67f3d65ceffe6f0008e49243
😎 Deploy Preview https://deploy-preview-1243--aya-rs-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@mergify mergify bot added the test A PR that improves test cases or CI label Apr 6, 2025
tamird added 3 commits April 7, 2025 06:42
This removes octorust which takes absolutely ages to compile and also
requires native TLS libraries which in turn require a C toolchain. The
latter is a pain when cross compiling from macOS.

This reverts commit cc2da4a.
Remove vector preallocation in the uncompressed case; the standard
library implementation of `io::Read` for `fs::File` already does this.
Make the xz2 dependency optional to allow building without a C cross
compiler. This allows clippy.sh to be used on e.g. macOS more easily:

```
./clippy.sh --target x86_64-unknown-linux-gnu --exclude-features xz2
```
Copy link
Member

@vadorovsky vadorovsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 1 files at r1, 2 of 2 files at r2, 3 of 3 files at r3, 3 of 3 files at r4, 1 of 1 files at r5, 3 of 3 files at r6, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @dave-tucker)


test-distro/src/lib.rs line 52 at r4 (raw file):

        xz2::read::XzDecoder::new(f).read_to_end(&mut contents)
    } else {
        f.read_to_end(&mut contents)

Should we reserve in this case as well? We could just use stat.len().

@tamird tamird requested a review from vadorovsky April 7, 2025 16:33
Copy link
Member Author

@tamird tamird left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @dave-tucker and @vadorovsky)


test-distro/src/lib.rs line 52 at r4 (raw file):

Previously, vadorovsky (Michal Rostecki) wrote…

Should we reserve in this case as well? We could just use stat.len().

This removal is explained in the commit message.

Copy link
Member

@vadorovsky vadorovsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @dave-tucker)

Copy link
Member

@dave-tucker dave-tucker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 1 of 1 files at r1, 2 of 2 files at r2, 3 of 3 files at r3, 3 of 3 files at r4, 1 of 1 files at r5, 3 of 3 files at r6, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @tamird)

@tamird tamird merged commit 5732b2c into aya-rs:main Apr 8, 2025
31 checks passed
@tamird tamird deleted the back-to-curl branch April 8, 2025 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test A PR that improves test cases or CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants