Skip to main content

Crate xtax

Crate xtax 

Source
Expand description

§xtax — Facade crate for the xtax Rust infrastructure ecosystem

xtax is a lightweight re-export crate. It contains no business logic of its own. Instead, it re-exports selected subcrates behind Cargo feature flags, giving you a single dependency with composable, opt-in functionality.

§Usage

By default, the xtax facade enables no functionality:

[dependencies]
xtax = "0.1"

Enable only the parts you need.

§Blob storage with filesystem backend

[dependencies]
xtax = { version = "0.1", features = ["blob-storage"] }
use xtax::blob_storage::BlobStoreBuilder;

§Blob storage with S3 backend

[dependencies]
xtax = { version = "0.1", features = ["blob-storage-s3"] }
use xtax::blob_storage::BlobStoreBuilder;

§Encryption provider interface

[dependencies]
xtax = { version = "0.1", features = ["encryption"] }
use xtax::encryption::EncryptionProvider;

Or depend on subcrates directly — both paths are valid:

[dependencies]
xtax-blob-storage = "0.1"
use xtax_blob_storage::BlobStoreBuilder;

§Feature flags

FeatureCrate re-exportedDescription
blob-storagextax-blob-storageBlob storage with filesystem backend
blob-storage-s3xtax-blob-storageBlob storage with S3 backend enabled
blob-storage-fullxtax-blob-storageEnables all blob-storage backends exposed here
encryptionxtax-encryptionTrait-only encryption provider interface
fullall facade featuresEnables all currently exposed facade features

§Subcrate documentation

CrateDocumentation
xtax-blob-storagedocs.rs
xtax-encryptiondocs.rs

§Architecture

  • The xtax facade crate contains no logic.
  • Each subcrate has standalone value and can be used without the facade.
  • Subcrates must not depend on the facade crate.
  • Dependency direction is always: xtax → subcrate, never the reverse.