Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Dec 30, 2024

This PR contains the following updates:

Package Type Update Change
hf-hub dependencies minor ^0.3.2^0.4.0

Release Notes

huggingface/hf-hub (hf-hub)

v0.4.3

What's Changed

New Contributors

Full Changelog: huggingface/hf-hub@v0.4.1...v0.4.3

v0.4.1

Compare Source

What's Changed

Full Changelog: huggingface/hf-hub@v0.4.0...v0.4.1

v0.4.0

New in 0.4.0

  • Rest of the changes are auto-generated an do not reflect things new in 0.4.0.
  • BREAKING CHANGE: HF_HOME is not read by default anymore. ApiBuilder::from_env() and Cache::from_env now read it instead of ::new() and they also read HF_ENDPOINT to align with huggingface_hub. Reading environment variable should be opted-in, not defaults.
  • BREAKING CHANGE: tokio backend now uses a single task with multiple chunks to go easy on user's desktop connections. Instead using ApiBuilder::new().high() should be used if you want to saturate the connection by using many concurrent tasks to saturate connections (for instance S3)
  • Downloads will resume automatically by @​Narsil in #​84
  • Choice of TLS backend. Choose your backend for TLS support with ["ureq", "tokio"] X ["native-tls", "rustls-tls"] features cross product. Remember to deactivate default features to select only the features you're interested in.

What's Changed

New Contributors

Full Changelog: https://github.com/huggingface/hf-hub/commits/v0.4.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@sourcery-ai
Copy link

sourcery-ai bot commented Dec 30, 2024

Reviewer's Guide by Sourcery

This PR updates the hf-hub crate to version 0.4.0. This update introduces breaking changes related to environment variable handling and the tokio backend. Additionally, it includes features for resumable downloads and a choice of TLS backend.

Sequence diagram for resumable downloads in hf-hub v0.4.0

sequenceDiagram
    participant C as Client
    participant H as hf-hub
    participant S as Server

    C->>H: Request download
    H->>S: Initial download request
    alt Download interrupted
        S-->>H: Partial content
        H->>H: Save progress
        H->>S: Resume request with range
        S-->>H: Remaining content
    end
    H-->>C: Complete file
Loading

Class diagram showing TLS backend options in hf-hub v0.4.0

classDiagram
    class TLSBackend {
        <<interface>>
    }
    class NativeTLS {
        +connect()
    }
    class RustlsTLS {
        +connect()
    }

    TLSBackend <|-- NativeTLS
    TLSBackend <|-- RustlsTLS

    note for TLSBackend "New configurable TLS backend support"
Loading

File-Level Changes

Change Details Files
Upgrade hf-hub to 0.4.0
  • Updated the hf-hub dependency from ^0.3.2 to ^0.4.0 in Cargo.toml.
  • Updated the Cargo.lock file to reflect the changes in the dependency graph and lock the hf-hub version to 0.4.0.
Cargo.toml
Cargo.lock

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

We have skipped reviewing this pull request. It seems to have been created by a bot (hey, renovate[bot]!). We assume it knows what it's doing!

@renovate renovate bot force-pushed the renovate/hf-hub-0.x branch from 1b81164 to 555c46c Compare August 10, 2025 14:13
@renovate renovate bot force-pushed the renovate/hf-hub-0.x branch from 555c46c to ae2fc19 Compare September 25, 2025 14:59
@renovate renovate bot force-pushed the renovate/hf-hub-0.x branch from ae2fc19 to 07771db Compare December 10, 2025 11:13
@renovate renovate bot force-pushed the renovate/hf-hub-0.x branch from 07771db to 927a602 Compare February 2, 2026 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants