Consider removing tonic-build
from opentelemetry-proto build dependencies
#873
Labels
tonic-build
from opentelemetry-proto build dependencies
#873
At the moment, opentelemetry-proto has tonic-build in its build dependencies:
opentelemetry-rust/opentelemetry-proto/Cargo.toml
Lines 64 to 66 in a57993c
This means
.proto -> .rs
compilation happens in the downstream projects which use otl-rust. That is, downstream project:protoc
during buildtonic-build
itself, and running it on fixed otl protosAn alternative would be to publish
otl-proto
crate with all Rust code pre-generated. A couple of ways to go about that:#[test]
which checks that the generated code is fresh (so, movetonic-build
from a build-dep to a dev-deps. dev deps, unilke builddeps, don't "infect" downstream consumers).crate
archive sumbitted to crates.io, but not into the git repo.The text was updated successfully, but these errors were encountered: