Skip to content

longshore 0.4.0

Latest

Choose a tag to compare

@mfreeman451 mfreeman451 released this 04 Dec 09:40
· 14 commits to main since this release
v0.4.0
d7e0e09

longshore 0.4.0 is on crates.io. The published crates share this version.

https://crates.io/crates/longshore

HTTP & S3 TLS staging buffers (#79)

  • longshore_stream exports TLS_BUFFER_MIN and validates in Stream::start_handshake that both TLS staging buffers are at least the configured capacity, returning TlsError::Setup if undersized.
  • longshore_http_client adds ClientConfigBuilder::tls_buffer_size, ClientConfig::tls_buffer_size, Client::try_with_tls, and ClientConfigError::TlsBufferSize, and marks ClientConfigError as #[non_exhaustive] (breaking change under 0.x semver).
  • longshore_s3::client::Builder::tls_buffer_size caps sizing at 1 GiB (TLS_BUFFER_MIN..=1 GiB) and allocates 2 * connections TLS staging buffers in Limits::aligned_buffers without enlarging object body buffers.

Mutual TLS, custom TLS 1.3 configs, and live rotation (#77)

  • longshore_tls adds ClientSetup::with_roots_and_identity, ServerSetup::with_client_roots, crypto_provider, and from_config / from_config_using constructors.
  • longshore_tcp adds set_tls, set_client, and set_server on KernelTransport and Net for live certificate and trust-root rotation without disrupting open connections.

S3 GetPart, long keys, and signed bulk deletes (#74, #76, #78)

  • S3::get_part, S3::get_part_with, Client::get_part, and Upload::upload_id read individual parts (or byte ranges) of in-progress or completed multipart uploads.
  • Raised KEY_ENCODED_MAX to 1025 bytes, added S3::erase_many_with with Content-MD5 support, and fixed slot resets.

Published at 0.4.0

longshore, longshore_s3, longshore_tcp, longshore_file, longshore_common, longshore_http_client, longshore_stream, longshore_tls, longshore_mailbox, longshore_dns, longshore_crc.

longshore_s3_cache is in this tree and is not published.

Requires Rust 1.89.