Skip to main content

Crate xet_runtime

Crate xet_runtime 

Source
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§

config
core
error
error_printer
fd_diagnostics
file_utils
logging
utils

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 $value before 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.