#![forbid(unsafe_code)]
#![cfg_attr(not(test), deny(clippy::print_stdout, clippy::print_stderr))]
#![doc = include_str!("../README.md")]
pub mod admin;
pub mod auth_v2;
pub mod authority;
#[cfg(feature = "connect")]
pub mod connect;
pub mod download;
mod error;
#[cfg(all(feature = "fs", not(target_arch = "wasm32")))]
pub mod fs;
#[cfg(feature = "remote-hooks")]
pub mod hooks;
#[cfg(feature = "http-objects")]
pub mod http_objects;
pub mod indexed;
#[cfg(any(test, feature = "memory"))]
mod memory;
mod op;
pub mod pipeline;
pub mod policy;
mod principal;
pub mod purge;
pub mod quota;
pub mod refs;
pub mod relay;
mod replay;
mod repo;
mod rt;
pub mod scanner_retrieval;
#[cfg(feature = "sql")]
pub mod sql;
#[cfg(feature = "ssh")]
pub mod ssh;
pub mod storage_error;
pub mod store;
pub mod takedown;
pub mod telemetry;
pub mod timers;
pub mod upload;
pub mod url_token;
pub use error::{
ADMISSION_CHALLENGE_TYPE, Code, ErrorDetail, InvalidHeader, Redacted, ServerError,
};
#[cfg(any(test, feature = "memory"))]
pub use memory::{MemoryBlobStore, MemoryFault, MemoryKv, MemoryPackSink};
pub use op::{
AuthzFacts, Commitment, Creation, GrantRef, OpKind, Operation, PresenceRequirement, Procedure,
RefUpdate, VerifiedAuth,
};
pub use policy::GrantConfig;
pub use principal::Principal;
pub use replay::{
BeginUploadResult, ReplayDecision, ReplayKey, ReplayRecord, ReplayState, StoredRejection,
StoredResult, UpdateRefResult, classify,
};
pub use repo::{Addressing, MultiAddressing, NamespaceKey, RepoId, RepoName, ResolvedRepo};
#[cfg(not(target_arch = "wasm32"))]
pub use rt::SystemClock;
pub use rt::{
BoxFuture, BoxStream, Clock, Elapsed, ManualClock, ManualSleep, MaybeSend, MaybeSync, Sleep,
Spawner, send_wrap, with_timeout,
};
pub use store::{
Batch, BatchOutcome, BlobBody, BlobKey, BlobMeta, BlobNamespace, BlobStore, BoxError,
ByteRange, CommitOutcome, ContentIndex, Cursor, Key, KeyClasses, MAX_BATCH_BYTES,
MAX_BATCH_OPS, MAX_KEY_BYTES, MAX_SCAN_RANGES, MAX_VALUE_BYTES, MembershipMode,
MultipartBlobStore, NamespaceStore, PackSink, PartRef, PartSink, Partition, PartitionStats,
Precondition, RangeScan, ScanPage, StateCommitment, StoreCapabilities, StoreError,
StoreMaintenance, UnsupportedPartSink, Value, Write, is_reserved_pack_keyspace,
};
pub use telemetry::{
METRIC_LATENCY, METRIC_REQUESTS, METRIC_UPLOAD_BYTES, Metrics, NEVER_ECHO, NEVER_LOG,
NoopMetrics, REDACTED_VALUE, Redactor, is_never_echo, is_never_log,
};