tikv / pprof-rs

A Rust CPU profiler implemented with the help of backtrace-rs
Apache License 2.0
1.29k stars 99 forks source link

Update prost 0.11 #166

Closed sticnarf closed 1 year ago

sticnarf commented 1 year ago

The generated file will contain a sha256. If profile.proto is not changed, we needn't regenerate the rust file. So, the users of the crate don't need protoc installed.

sticnarf commented 1 year ago

Hi, @YangKeao . Now, I check in the generated prost file.

In build.rs, it uses SHA256 sum to decide whether we need to re-generate the prost file. Then, in most cases, the user does not need to install protoc to compile this crate.