Skip to content

refactor: provide utils and constants for extensibility - #143

Open
matthewhaynesonline wants to merge 2 commits into
huggingface:mainfrom
matthewhaynesonline:provide-utils
Open

matthewhaynesonline wants to merge 2 commits into
huggingface:mainfrom
matthewhaynesonline:provide-utils

Conversation

@matthewhaynesonline

@matthewhaynesonline matthewhaynesonline commented Feb 28, 2026

Copy link
Copy Markdown

Motivation

This is a prerequisite for #142 (cache manager feat) but may also be useful for other downstream projects, like mistral.rs: https://github.com/EricLBuehler/mistral.rs/blob/2ed55750e24cc4cf0dfde2d4a2ad7352ed819d29/mistralrs-core/src/pipeline/hf.rs

Summary

  • Move hardcoded strings into constants mod
  • Add path mod for FS path construction utils
  • Implement display / str traits for RepoType
  • Use path utils mod for path construction in lib

- Move hardcoded strings into constants mod
- Add path mod for FS path construction utils
- Implement display / str traits for RepoType
- Use path utils mod for path construction in lib
@matthewhaynesonline
matthewhaynesonline force-pushed the provide-utils branch 2 times, most recently from 08263b9 to e61010e Compare March 2, 2026 01:43

This branch has not been deployed

No deployments
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