Skip to content

Commit b656c23

Browse files
authored
feat(profiling-ffi): ProfileStatus & ProfileError (#1404)
feat(profiling): FallibleStringWriter feat(profiling-ffi): ProfileStatus + ProfileError fix: io:Error -> ProfileError conversion test: improve io::Error conv docs: safety for Send+Sync for ProfileStatus docs: ProfileStatus ownership docs: ProfileStatus -> Cow<'static, CStr> cases refactor: static message instead of unreachable_unchecked! refactor: consolidate similar code Co-authored-by: levi.morrison <[email protected]>
1 parent 978619c commit b656c23

File tree

6 files changed

+896
-4
lines changed

6 files changed

+896
-4
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libdd-profiling-ffi/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ datadog-ffe-ffi = ["dep:datadog-ffe-ffi"]
3838
build_common = { path = "../build-common" }
3939

4040
[dependencies]
41+
allocator-api2 = { version = "0.2.21", default-features = false, features = ["alloc"] }
4142
anyhow = "1.0"
4243
libdd-data-pipeline-ffi = { path = "../libdd-data-pipeline-ffi", default-features = false, optional = true }
4344
libdd-crashtracker-ffi = { path = "../libdd-crashtracker-ffi", default-features = false, optional = true}

libdd-profiling-ffi/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,14 @@
88
#![cfg_attr(not(test), deny(clippy::unimplemented))]
99

1010
mod exporter;
11+
mod profile_error;
12+
mod profile_status;
1113
mod profiles;
1214
mod string_storage;
1315

16+
pub use profile_error::*;
17+
pub use profile_status::*;
18+
1419
#[cfg(all(feature = "symbolizer", not(target_os = "windows")))]
1520
pub use symbolizer_ffi::*;
1621

0 commit comments

Comments
 (0)