Repository navigation
v0.2.0
Immutable
release. Only release title and notes can be modified.
v0.2.0 — 2026-11-11
Highlights
- New crate
storageprims-local: a provider rooted at a local directory, with
the sameStorageProvidercontract as S3. Writes are atomic, create-only
writes are enforced by the operating system, and paths cannot escape the
root through symlinks or reparse points. storageprims-ops::relay_copycopies one object between two providers (for
example local to S3; both built-in providers support it) within an explicit
size, buffer, and time budget, and reports whether the destination write was
committed.- New optional extension traits in
storageprims-core:ReadResponseProvider
for reads that report what the provider observed, andAdmittedPutProvider
for writes that report how far they got.S3ProviderandLocalProvider
implement both. - New guides in
docs/guides/cover how the crates fit together, the local
provider, testing with it, and writing code that runs against local or S3
storage, with runnable examples.
Breaking changes
StorageError,Capability, andInspectionLimitDimensionare now
#[non_exhaustive]. Exhaustivematchexpressions on them in downstream
crates need a wildcard arm.InspectionLimitDimensionhas a newEntriesvariant (local listing scan
budget). The C ABI's last-error JSON contract can carry
limit_dimension: "entries"; this is additive, and all numeric error codes
are unchanged.- S3
putnow refuses bodies over the 5 GiB single-PutObjectceiling,
non-US-ASCII header values, and user metadata names that differ only in
case (the newadmit_putapplies the same rules). Provider-relative S3 object
keys that are only slashes, such as"/", are refused, as empty keys
already were. S3 errors andCopyResultreport caller-relative keys rather
than keys with the configured root prefix prepended.
Local provider bounds
- Conditional writes: create-only (
MustNotExist) on Linux, macOS, Android,
and Windows;Matchis not supported. - Delimiter listing supports only
"/". Each listing request examines at most
100,000 directory entries, counting every entry in each directory it opens,
and is checked against a 10-second deadline between filesystem steps; a
request over either bound fails rather than returning a partial page. A
stalled filesystem call cannot be interrupted, so a request can take longer
than 10 seconds before it fails. - No guarded reads, ETags, content type, or user metadata.
- The provider assumes cooperating writers. A hard link planted inside the
root by another writer is not detected; use an access-controlled root when
untrusted parties can write to the directory.
Known issue
- On Windows, a
putthat fails can occasionally leave a reserved
.storageprims-tmp*staging file in the destination directory. The provider
excludes these entries from listings and refuses them as keys. A fix is
planned.
Upgrade notes
- Registry consumers:
storageprims-core,storageprims-s3,
storageprims-local, andstorageprims-opsare published at0.2.0, in
that order, after the signed tag; publication of each crate is a separate
maintainer step. - Git consumers can pin
tag = "v0.2.0"after the signed tag is published and
verified. - Release CI now builds artifacts only; the maintainer creates and signs the
draft release locally. Release verification instructions are in
docs/security/README.md.
Full notes: docs/releases/v0.2.0.md