Repository navigation
Tags
Tags
connectrpc 0.6.0 Server-side interceptors: typed, async per-RPC middleware that wraps a single call after envelope decoding, decompression, and protocol header parsing, and before the handler. Interceptors see the resolved Spec, headers, deadline, extensions, and a lazily decoded Payload, can rewrite the request and response, and can short-circuit. Both unary and streaming RPCs are covered. Breaking: - Dispatcher::call_unary takes Payload, not Bytes (#119); regenerate checked-in protoc-gen-connect-rust output. AnyMessage gains a required into_any method (covered by the blanket impl). - MethodDescriptor is now #[non_exhaustive] with a spec: Option<Spec> field and from_kind/with_idempotent/with_spec const builders (#112). Added: - Interceptor trait, Next continuation, server registration via ConnectRpcService::with_interceptor / Server::with_interceptor (#114, #123). - Interceptor::intercept_streaming covering server-, client-, and bidi-streaming via one Stream-shaped hook (#121). - with_interceptor_arc for sharing one Arc<dyn Interceptor> across services (#118, #123). - Payload + AnyMessage type-erased, lazily decoded message bodies (#113). - Spec, StreamType, IdempotencyLevel static method metadata; per-method generated <SERVICE>_<METHOD>_SPEC constants (#112). - RequestContext::spec() / protocol() / path() (#112, #116). - Router::with_spec attaches Spec per route; the generated register() chains it after every route_* call (#120). - HttpClientBuilder with connect_timeout (#117). Conformance: server 3600/3600, client connect 2580/2580, client gRPC 1454/1454, client gRPC-Web 2838/2838.
connectrpc 0.5.0 Tracks buffa 0.6.0. Lands the contract-locking breaking changes for the runtime config types so future request- and client-scoped metadata can ship as non-breaking additions. Breaking: - buffa dependency bumped 0.5 -> 0.6 (#108); regenerate checked-in protoc-gen-connect-rust output and remove orphaned empty __oneof.rs/__ext.rs/__view_oneof.rs ancillary files. - Streaming handler traits gain `type Item: Encodable<Res>` (#98); generated streaming methods declare ServiceStream<impl Encodable<Out>>. - RequestContext is now #[non_exhaustive] with pub(crate) fields and accessor methods (#101). - ClientConfig/CallOptions fields are now pub(crate); ClientConfig setters renamed to with_* (#100). - Server/BoundServer/ServeTls builders renamed to with_* (#105). Added: - PreEncoded<M> response body for already-encoded bytes (#98). - DeadlinePolicy server-side timeout moderation (#103). - Server proxies for ConnectRpcService dispatch config + with_http1_keep_alive (#105). - ConnectError::into_http_response for short-circuiting tower layers (#111). - doc(cfg) annotations across the feature-gated public surface (#109). Fixed: - connectrpc-build: .files() no longer emits cargo:rerun-if-changed in Buf mode (#59). Conformance: server 3600/3600, client connect 2580/2580, client gRPC 1454/1454, client gRPC-Web 2838/2838.
connectrpc 0.4.2 Patch release: codegen lint coverage + axum TLS helper. - connectrpc-build's generated mod.rs #[allow(...)] is now sourced from buffa_codegen::ALLOW_LINTS (chained with impl_trait_redundant_captures), picking up clippy::uninlined_format_args, clippy::doc_lazy_continuation, and clippy::module_inception that the hardcoded list had drifted past. Bumps the buffa-codegen floor to 0.5.1. - `server` feature now enables `tokio/macros` (#80) — the accept loop uses tokio::select! and was relying on dev-dep feature unification. - New connectrpc::axum::serve_tls helper + examples/mtls-identity (#80). - Checked-in conformance/example/bench output regenerated against the buffa 0.5.2 toolchain (Self:: in oneof serde, inlined format args in enum serde). No runtime behaviour changes; conformance results unchanged from v0.4.1.
PreviousNext