pub const MAX_MESSAGE_SIZE: usize = std::u32::MAX as usize; // 4_294_967_295usize
Expand description

According to https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md, grpc uses a four bytes to describe the length of a message, so it should not exceed u32::MAX.