#![forbid(unsafe_code)]
mod artifact;
mod behavior_version;
mod buffer;
mod bundle;
mod diagnostics;
mod error;
mod fsutil;
#[cfg(feature = "prebuilt-gpu")]
mod gpu_data;
#[cfg(feature = "jit")]
mod jit;
mod manifest;
mod package_data;
mod runtime;
#[cfg(feature = "serving")]
mod serving;
mod session;
mod suggest;
mod verify_local;
#[cfg(test)]
#[allow(dead_code)]
#[path = "../build_support/source_identity.rs"]
mod build_support;
pub use artifact::{
ArtifactInspection, ArtifactManager, ArtifactManagerBuilder, ArtifactSource, BearerToken,
EnvironmentToken, Revision, SecretProvider,
};
pub use buffer::{Encoding, RaggedEncoding, TokenBuffer, TokenPatch};
pub use bundle::{
export_bundle, import_bundle, inspect_bundle, BundleFileInspection, BundleInspection,
};
pub use diagnostics::{
Backend, BehaviorVersion, Certification, CudaFacts, Device, DoctorFacts, ExecutionFacts,
GpuDelivery, Policy, ReasonCode, RoutePlan, RuntimeBuildFacts, StoreStats,
};
pub use error::{Error, ErrorCode, Result};
#[cfg(feature = "jit")]
pub use jit::{JitArtifact, JitCompiler, JitCompilerBuilder, JitToolchainFacts};
pub use manifest::{ArtifactIdentity, LocalArtifact};
pub use runtime::{DecodeOptions, EncodeOptions, Runtime, RuntimeBuilder, Tokenizer};
#[cfg(feature = "serving")]
pub use serving::{
DeviceFailurePolicy, ServingLimits, ServingPool, ServingPoolBuilder, ServingRequest,
ServingResponse, ServingSession, ServingTimings,
};
pub use session::{Session, SessionStats};
pub use verify_local::verify_local_command;
pub const ORACLE: &str = "tokenizers==0.22.2";
pub const DEPENDENCY_CLOSURE: &str = env!("TOKTIER_RUST_API_DEPENDENCY_CLOSURE");