Skip to content

v0.2.0

Choose a tag to compare

@3leapsdave 3leapsdave released this 11 Nov 19:28
Immutable release. Only release title and notes can be modified.
v0.2.0
73e5525

v0.2.0 — 2026-11-11

Highlights

  • New crate storageprims-local: a provider rooted at a local directory, with
    the same StorageProvider contract 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_copy copies 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, and AdmittedPutProvider
    for writes that report how far they got. S3Provider and LocalProvider
    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, and InspectionLimitDimension are now
    #[non_exhaustive]. Exhaustive match expressions on them in downstream
    crates need a wildcard arm.
  • InspectionLimitDimension has a new Entries variant (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 put now refuses bodies over the 5 GiB single-PutObject ceiling,
    non-US-ASCII header values, and user metadata names that differ only in
    case (the new admit_put applies the same rules). Provider-relative S3 object
    keys that are only slashes, such as "/", are refused, as empty keys
    already were. S3 errors and CopyResult report 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; Match is 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 put that 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, and storageprims-ops are published at 0.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