prost icon indicating copy to clipboard operation
prost copied to clipboard

Preserves original *.proto message and enum names

Open Voronar opened this issue 3 years ago • 2 comments

Feature request (https://github.com/tokio-rs/prost/issues/207) implementation.

Voronar avatar Apr 28 '21 15:04 Voronar

If I understand correctly this change would allow prost-build to generate code with warnings?

LucioFranco avatar Jul 06 '21 16:07 LucioFranco

@LucioFranco Yes. But one can set warning disabling attribute like this:

pub mod protobuf {
  #![allow(non_camel_case_types)]
  include!(concat!(env!("OUT_DIR"), "/protoapi.rs"));
}

Voronar avatar Jul 07 '21 09:07 Voronar