Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
javierhonduco committed Jun 11, 2024
1 parent 38e286c commit ce0e4c5
Show file tree
Hide file tree
Showing 6 changed files with 289 additions and 72 deletions.
39 changes: 38 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ assert_cmd = { version = "2.0.14" }
insta = { version = "1.38.0", features = ["yaml"] }
rstest = "0.19.0"
tempdir = "0.3.7"
rand = "0.8.5"

[build-dependencies]
bindgen = "0.69.4"
Expand Down
7 changes: 6 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ fn main() {

// Proto-related code.

prost_build::compile_protos(&["src/proto/profile.proto"], &["src/proto"])
let mut config = prost_build::Config::new();
config.type_attribute("Sample", "#[derive(Eq, Hash)]");
config.type_attribute("Label", "#[derive(Eq, Hash)]");

config
.compile_protos(&["src/proto/profile.proto"], &["src/proto"])
.expect("build profile.proto");
}
Binary file added profile.pb
Binary file not shown.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pub mod object;
pub mod perf_events;
pub mod profile;
pub mod profiler;
pub mod proto;
pub mod unwind_info;
pub mod usym;
pub mod util;
pub mod proto;
Loading

0 comments on commit ce0e4c5

Please sign in to comment.