Skip to content

Commit 7c29a10

Browse files
committed
Only try to build fd doctest on Unix
1 parent b13bbf7 commit 7c29a10

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/extern_type.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
///
6464
/// ```no_run
6565
/// // file/src/lib.rs
66+
/// # #[cfg(unix)]
6667
/// # mod file {
6768
/// # use std::os::unix::io::{IntoRawFd, FromRawFd};
6869
/// #[cxx::bridge(namespace = file::ffi)]
@@ -110,6 +111,7 @@
110111
/// // namespace as any bridge it creates aliases from.
111112
///
112113
/// // usage.rs
114+
/// # #[cfg(unix)]
113115
/// # mod usage {
114116
/// #[cxx::bridge(namespace = file::ffi)]
115117
/// pub mod ffi {

0 commit comments

Comments
 (0)