Skip to content

Implement fetching IPFS resources#6

Merged
artob merged 3 commits into
dryrust:masterfrom
SamuelSarle:master
Jun 9, 2025
Merged

Implement fetching IPFS resources#6
artob merged 3 commits into
dryrust:masterfrom
SamuelSarle:master

Conversation

@SamuelSarle
Copy link
Copy Markdown
Collaborator

Should I include Cargo.lock changes here after running cargo update to get the latest known-schemes@0.1.1 for the IPFS scheme or should the lockfile be deleted altogether since this is a lib?

Verify:

$ cargo run -q --example ipfs
Hello from IPFS Gateway Checker

Matches: https://ipfs.io/ipfs/bafybeifx7yeb55armcsxwwitkymga5xf53dxiarykms3ygqic223w5sk3m

Clippy message:
```
warning: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true
   --> lib/gofer/src/error.rs:130:1
    |
130 | impl Into<std::io::Error> for Error {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: `impl From<Local> for Foreign` is allowed by the orphan rules, for more information see
            https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into
    = note: `#[warn(clippy::from_over_into)]` on by default
help: replace the `Into` implementation with `From<error::Error>`
    |
130 ~ impl From<Error> for std::io::Error {
131 ~     fn from(val: Error) -> Self {
132 |         use std::io::ErrorKind;
133 ~         match val {
```
@SamuelSarle SamuelSarle requested a review from artob as a code owner June 7, 2025 11:41
@SamuelSarle
Copy link
Copy Markdown
Collaborator Author

@race-of-sloths include

@race-of-sloths
Copy link
Copy Markdown

race-of-sloths commented Jun 7, 2025

@SamuelSarle Thank you for your contribution! Your pull request is now a part of the Race of Sloths!
You are true leader! Other sloths hot on your heels, keep moving!

Shows inviting banner with latest news.

Shows profile picture for the author of the PR

Current status: executed
Reviewer Score
@artob 5

Your contribution is much appreciated with a final score of 5!
You have received 50 Sloth points for this contribution

@artob received 25 Sloth Points for reviewing and scoring this pull request.

We would appreciate your feedback or contribution idea that you can submit here

What is the Race of Sloths

Race of Sloths is a friendly competition where you can participate in challenges and compete with other open-source contributors within your normal workflow

For contributors:

  • Tag @race-of-sloths inside your pull requests
  • Wait for the maintainer to review and score your pull request
  • Check out your position in the Leaderboard
  • Keep weekly and monthly streaks to reach higher positions
  • Boast your contributions with a dynamic picture of your Profile

For maintainers:

  • Score pull requests that participate in the Race of Sloths and receive a reward
  • Engage contributors with fair scoring and fast responses so they keep their streaks
  • Promote the Race to the point where the Race starts promoting you
  • Grow the community of your contributors

Feel free to check our website for additional details!

Bot commands
  • For contributors
    • Include a PR: @race-of-sloths include to enter the Race with your PR
  • For maintainers:
    • Invite contributor @race-of-sloths invite to invite the contributor to participate in a race or include it, if it's already a runner.
    • Assign points: @race-of-sloths score [1/2/3/5/8/13] to award points based on your assessment.
    • Reject this PR: @race-of-sloths exclude to send this PR back to the drawing board.
    • Exclude repo: @race-of-sloths pause to stop bot activity in this repo until @race-of-sloths unpause command is called

@artob
Copy link
Copy Markdown
Contributor

artob commented Jun 7, 2025

@SamuelSarle Don't include lock files in PRs, lest they create merge conflicts between PRs. However, best practice has indeed shifted to keeping the lock file under version control as well.

@artob artob self-assigned this Jun 7, 2025
@artob artob added the enhancement New feature or request label Jun 7, 2025
@artob artob changed the title Implement fetching IPFS resources Implement fetching IPFS resources Jun 7, 2025
Copy link
Copy Markdown
Contributor

@artob artob left a comment

Choose a reason for hiding this comment

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

LGTM

@artob
Copy link
Copy Markdown
Contributor

artob commented Jun 9, 2025

@race-of-sloths score 5

@artob artob merged commit f4ea4a5 into dryrust:master Jun 9, 2025
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Development

Successfully merging this pull request may close these issues.

3 participants