snix/tvix/castore/src/lib.rs
Florian Klink 9fabf8a1b5 feat(tvix/castore): set user-agent for object_store blob/directorysvc
Change-Id: I9fcebffb19174cba2e9001398419d3041266400c
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12850
Reviewed-by: Vladimir Kryachko <v.kryachko@gmail.com>
Tested-by: BuildkiteCI
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: flokli <flokli@flokli.de>
2024-11-29 08:09:50 +00:00

38 lines
856 B
Rust

mod digests;
mod errors;
mod hashing_reader;
pub mod blobservice;
pub mod composition;
pub mod directoryservice;
pub mod fixtures;
pub mod refscan;
#[cfg(feature = "fs")]
pub mod fs;
mod nodes;
pub use nodes::*;
mod path;
pub use path::{Path, PathBuf, PathComponent, PathComponentError};
pub mod import;
pub mod proto;
pub mod tonic;
// Used as user agent in various HTTP Clients
const USER_AGENT: &str = concat!(env!("CARGO_PKG_NAME"), "/", env!("CARGO_PKG_VERSION"));
pub use digests::{B3Digest, B3_LEN};
pub use errors::{DirectoryError, Error, ValidateNodeError};
pub use hashing_reader::{B3HashingReader, HashingReader};
#[cfg(test)]
mod tests;
// That's what the rstest_reuse README asks us do, and fails about being unable
// to find rstest_reuse in crate root.
#[cfg(test)]
#[allow(clippy::single_component_path_imports)]
use rstest_reuse;