Steven Fackler

Results 229 comments of Steven Fackler

The general expectation is that if you want to forward notifications to a stream, you'd write that code and then spawn it off: https://github.com/sfackler/rust-postgres/blob/master/tokio-postgres/tests/test/main.rs#L616-L619 What would a query_raw function do?

You can use the [serde_bytes](https://crates.io/crates/serde_bytes) crate.

> [1] This could be upstreamed if the maintainers are open to (at least temporarily) not having each platform be "equal", i.e. only openssl would have ALPN to start with....

You can install layers between hyper and the tonic service that change the body type.

So then it's totally possible to create a Hyper service that changes the request body type and then feeds that modified body type into the Tonic Router, except that Router...

The Java gRPC server implementation also appears to behave this way.

> An unknown field error from the seed of `ExtendedFooFieldsVisitor` must be converted into the `Ignore` variant, but all other error likely should remain. Inspecting the errors might be complicated,...

Hmm - we can't actually filter the errors since the error will terminate the deserialization of the inner value entirely... EDIT: Ah - we may be able to take an...

On the other hand, the docs on serde.rs do explicitly state that `flatten` isn't compatible with `deny_unknown_fields`: https://serde.rs/field-attrs.html#flatten.