diff --git a/crashtracker/Cargo.toml b/crashtracker/Cargo.toml index 248c9a8d39..d6ff7e2d35 100644 --- a/crashtracker/Cargo.toml +++ b/crashtracker/Cargo.toml @@ -11,6 +11,11 @@ license.workspace = true crate-type = ["lib"] bench = false +[[bin]] +name = "crashtracker-receiver" +path = "src/bin/crashtracker_receiver.rs" +bench = false + [features] default = ["collector", "receiver"] # Enables the in-process collection of crash-info diff --git a/crashtracker/src/bin/crashtracker_receiver.rs b/crashtracker/src/bin/crashtracker_receiver.rs new file mode 100644 index 0000000000..cc1b8edffb --- /dev/null +++ b/crashtracker/src/bin/crashtracker_receiver.rs @@ -0,0 +1,10 @@ +// Copyright 2023-Present Datadog, Inc. https://www.datadoghq.com/ +// SPDX-License-Identifier: Apache-2.0 + +#[cfg(not(unix))] +fn main() {} + +#[cfg(unix)] +fn main() -> anyhow::Result<()> { + datadog_crashtracker::receiver_entry_point_stdin() +}