Upgrading from 0.9 to 0.10
No breaking change. One deprecation, with a compiler warning at every use site naming the replacement.
TenantLimits::max_stored_tasks is deprecated
It named a cap on stored tasks and nothing ever read it: it sits on
PerTenantConfig, which the handler holds, and a store is constructed
independently and handed to the builder, so a store never saw it. The working
equivalent gives a named tenant its own TaskStoreConfig, and therefore its
own max_capacity:
#![allow(unused)] fn main() { use a2a_protocol_server::{TaskStoreConfig, TenantAwareInMemoryTaskStore}; let store = TenantAwareInMemoryTaskStore::new().with_tenant_override( "acme", TaskStoreConfig::default().with_max_capacity(Some(500)), ); let _ = store; }
The override applies to a partition created after the store is built; a tenant that already has one keeps it. The field was deprecated rather than removed until 0.15.0, which removes it.
The same release corrected two pieces of documentation that read as if
something was enforced when it was not: PerTenantConfig and TenantLimits
now state that no code in the request path reads any of the five per-tenant
limits (data isolation runs through the tenant-aware stores' partitioning,
not through those limits), and ClientConfig::max_response_size now states
that it does not reach a transport supplied via with_custom_transport —
WebSocketTransportConfig::max_message_size is the setting that applies
there. Neither is a change in behaviour; both may be a change in what you
believed.
Back to Upgrading Between Minor Versions.