ITZMA is still taking shape, and its API can change between releases. Version 0.2.1: serde_with security fix
Docs / Reference

Object storage backends and requirements

S3, GCS, Azure or anything object_store supports, as long as it has put-if-absent and conditional update.

On this page

What does a store need?

Anything that implements object_store::ObjectStore works: S3, GCS, Azure, local disk, memory. Itzma needs put-if-absent (writes, create) and conditional update (every manifest change: compaction, indexing, format upgrades).

StorePut-if-absentConditional updateWhat works
Amazon S3 and S3-compatiblesyesyeseverything
Google Cloud Storageyesyeseverything
Azure Blob Storageyesyeseverything
In memoryyesyeseverything
Local diskyesnocreate, write and query; compaction, indexing and upgrades fail with a storage error

Cloud adapters on the official SDKs

Three crates wrap the vendors’ own Rust SDKs as an ObjectStore, for when you want the SDK’s credentials, retries, timeouts and endpoints rather than object_store’s clients:

CrateStoreBuild it from your clientOr from settingsRust
itzma-store-awsAmazon S3 and compatiblesS3Store::new(client, bucket)S3Store::connect(bucket, S3Options)1.94.1
itzma-store-gcsGoogle Cloud StorageGcsStore::new(storage, control, bucket)GcsStore::connect(bucket, GcsOptions)1.91
itzma-store-azureAzure Blob StorageAzureStore::new(container_client)AzureStore::connect(account, container, AzureOptions)1.88

Without options, GCS uses Google’s default credentials (Workload Identity on GKE and Cloud Run), Azure a managed identity, and S3 the AWS SDK’s default chain. Put-if-absent and the manifest’s conditional update map to each service’s own condition (GCS generations, Azure and S3 ETags), so a lost race is always reported as one. They are released with itzma-core, at the same version:

toml
itzma-store-gcs = "0.2.1"

Testing a custom storage adapter

If you implement your own object_store::ObjectStore, use the itzma-store conformance suite (itzma_store::conformance_tests!) to check whether the backend meets Itzma’s storage requirements: put-if-absent, conditional update, NotFound for a gone object, ranges, listings, copies and multipart uploads. A store counts as supported when it passes. The three adapters above run the same suite in CI against an emulator: MinIO for S3, storage-testbench for GCS, Azurite for Azure.

Python store URLs

In Python a store is a URL: memory://, file:///var/lib/itzma, s3://bucket/prefix, gs://bucket/prefix or az://container/prefix. They are built on the adapters above. S3 credentials and region come from the AWS SDK’s usual chain, GCS uses Google’s default credentials, and Azure a managed identity unless credential or sas_token says otherwise; keywords override them. Python API lists them.

Docs
esc

Loading the docs…