You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--include_source_info When using --descriptor_set_out, do not strip
SourceCodeInfo from the FileDescriptorProto.
This results in vastly larger descriptors that
include information about the original
location of each decl in the source file as
well as surrounding comments.
We already support passing disable_comments to disable comment processing during the code generation.
However, when we compile FileDescriptorSet, we always pass --include_source_info. These might cause a problem, especially when the file is later included into the final binary using include_bytes! e.g. because of the following:
The comments might contain sensitive private information (comments + file location) which we don't want to be visible in the binary (e.g. when someone disassemble it).
It increases the size of the binary
The text was updated successfully, but these errors were encountered:
From the
protoc --help
:We already support passing disable_comments to disable comment processing during the code generation.
However, when we compile FileDescriptorSet, we always pass --include_source_info. These might cause a problem, especially when the file is later included into the final binary using include_bytes! e.g. because of the following:
The text was updated successfully, but these errors were encountered: