MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / protoc_include

Function protoc_include

src/build-tools/src/lib.rs:42–51  ·  view source on GitHub ↗

Returns the path to the protobuf includes directory. Note: this is primarily used to include "well known types".

()

Source from the content-addressed store, hash-verified

40///
41/// Note: this is primarily used to include "well known types".
42pub fn protoc_include() -> PathBuf {
43 cfg_if! {
44 if #[cfg(feature = "protobuf-src")] {
45 protobuf_src::include()
46 } else {
47 let path = std::option_env!("PROTOC_INCLUDE").unwrap_or_default();
48 PathBuf::from(path)
49 }
50 }
51}

Callers 14

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected