Expand description
XET large file storage filter for git2db
Provides transparent integration with XET repositories via libgit2 filters.
This crate can be used standalone or as part of git2db.
§Feature Flags
xet-storage(disabled by default): Enables actual XET CAS integration. Without this feature, only configuration types and error handling are available.
§Available without xet-storage:
XetConfig- Configuration for XET endpointsXetError,XetErrorKind,Result- Error types for handling XET failures
§Available with xet-storage:
initialize()- Register the XET filter with libgit2is_initialized()- Check if filter is registered- Filter storage and runtime modules
Re-exports§
pub use config::XetConfig;pub use config::HUGGINGFACE_XET_ENDPOINT;pub use error::Result;pub use error::XetError;pub use error::XetErrorKind;
Modules§
- callbacks
- C callback implementations for libgit2 filter
- config
- Configuration for XET filter
- error
- Error handling for XET filter operations
- ffi
- Safe FFI bindings to libgit2’s filter system
- filter
- XET filter implementation with type state pattern
- gittorrent_
storage - GittorrentStorage — StorageBackend implementation for P2P distribution.
- runtime
- Dedicated runtime for XET filter async operations
- storage
- Storage backend for XET content-addressed storage operations.
Functions§
- clear_
last_ error - Clear the last XET filter error for this thread
- clear_
smudge_ progress - Clear the smudge progress callback for the current thread.
- get_
config - Get the XET config used during initialization
- initialize
- Initialize XET filter support
- is_
initialized - Check if XET filter is initialized
- last_
error - Get the last XET filter error from this thread
- set_
smudge_ progress - Set a callback to receive per-file smudge progress during checkout. Resets the internal counter to 0.
Type Aliases§
- Smudge
Progress Callback - Callback invoked on each smudge (download) operation during checkout.