Debian Codegraph @

spm-cpp-include/grpcpp/impl/codegen/README.md

raw
1 # Welcome to `include/grpcpp/impl/codegen`
2
3 ## Why is this directory here?
4
5 This directory exists so that generated code can include selected files upon
6 which it depends without having to depend on the entire gRPC C++ library. This
7 is particularly relevant for users of bazel, particularly if they use the
8 multi-lingual `proto_library` target type. Generated code that uses this target
9 only depends on the gRPC C++ targets associated with these header files, not the
10 entire gRPC C++ codebase since that would make the build time of these types of
11 targets excessively large (particularly when they are not even C++ specific).
12
13 ## What should user code do?
14
15 User code should *not* include anything from this directory. Only generated code
16 and gRPC library code should include contents from this directory. User code
17 should instead include contents from the main `grpcpp` directory or its
18 accessible subcomponents like `grpcpp/support`. It is possible that we may
19 remove this directory altogether if the motivations for its existence are no
20 longer strong enough (e.g., if most users migrate away from the `proto_library`
21 target type or if the additional overhead of depending on gRPC C++ is not high).