Expand description
Async runtime, configuration, logging, and utility infrastructure for the Hugging Face Xet storage tools.
This crate provides the shared foundation used by all crates in the xet-core ecosystem: a Tokio-based async runtime, hierarchical configuration, structured tracing-based logging, and common error types.
Re-exports§
pub use error::RuntimeError;pub use utils::configuration_utils;
Modules§
Macros§
- all_
config_ groups - Single source of truth for all platform-independent config groups. Invokes the given callback macro with the list of group names.
- config_
group - Macro to create a configuration value group struct.
- test_
configurable_ constants - test_
set_ config - A macro for tests that sets config group environment variables before
XetRuntime is initialized. The environment variables follow the pattern
HF_XET_{GROUP_NAME}_{FIELD_NAME}. - test_
set_ constants - A macro for tests that sets
HF_XET_<CONSTANT_NAME>to$valuebefore the constant is initialized, and then checks that the constant actually picks up that value. If the constant was already accessed (thus initialized), or if it doesn’t match after being set, this macro panics.