Skip to content

Commit

Permalink
[crashtracker] Build static binary (#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsn authored and hoolioh committed Aug 21, 2024
1 parent 91e4a94 commit 649405b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crashtracker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions crashtracker/src/bin/crashtracker_receiver.rs
Original file line number Diff line number Diff line change
@@ -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()
}

0 comments on commit 649405b

Please sign in to comment.