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

Allow building the lib for more flavors #200

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ykhrustalev
Copy link
Contributor

@ykhrustalev ykhrustalev commented Mar 31, 2025

The library has limited support for embedded environments, such as iOS or Mac Catalyst, all due to the huge dependency graph that hf-hub has.

This change makes it possible to strip the hf-hub dependency. The current use for the hf-hub is preserved as a default feature.

Tested to work with:

  • cargo build --release --target aarch64-apple-ios --no-default-features
  • cargo build --release --target aarch64-apple-ios-macabi --no-default-features

The library has limited support for embedded environments, such as
iOS or Mac Catalyst, all due to the huge dependency graph that
hf-hub has.

This change make it possible to strip the hf-hub dependency.
The current use for the hf-hub is preserved as a default feature.

Tested to work with:
* `cargo build --release --target aarch64-apple-ios --no-default-features`
* `cargo build --release --target aarch64-apple-ios-macabi --no-default-features`
@rlouf rlouf requested a review from RobinPicard April 6, 2025 15:44
@ykhrustalev
Copy link
Contributor Author

I will verify ci

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.

1 participant