Skip to content

Commit

Permalink
no_main on non-Apple platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert committed Sep 20, 2024
1 parent aa19b97 commit c36d954
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions quinn-udp/build.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#![cfg(any(target_os = "macos", target_os = "ios"))]

use std::env;
use std::path::PathBuf;
#![cfg_attr(not(any(target_os = "macos", target_os = "ios")), no_main)]

#[cfg(any(target_os = "macos", target_os = "ios"))]
fn main() {
use std::env;
use std::path::PathBuf;

// Generate the bindings for Apple's private `recvmsg_x` from
// https://github.com/apple-oss-distributions/xnu/blob/main/bsd/sys/socket.h.
let bindings = bindgen::Builder::default()
Expand Down

0 comments on commit c36d954

Please sign in to comment.