Closed shippomx closed 2 years ago
Please enable the feature protobuf
Please enable the feature
protobuf
If add the param --feateure="protobuf" and fix the Cargo.toml
like this:
[features]
protobuf = ["prost", "prost-derive", "prost-build"]
[dependencies]
pprof = "0.6.2"
prost = { version = "0.9", optional = true }
prost-derive = { version = "0.9", optional = true }
criterion = {version = "0.3", optional = true}
[build-dependencies]
prost-build = { version = "0.9", optional = true }
it will produce the error at the same. Can you show me the your Cargo.toml
in a totally new project ?
pprof = { version = "0.6.2", features = ["protobuf"] }
@shippomx
thanks, it works!
Env
I create a new project with
cargo new test
command. And replace thetest/src/main.rs
with examples/profile_proto.rs. Then add thepprof = "0.6.2"
toCargo.toml
like this:But I got the result after run the test project:
What should I do to solve this problem?