Skip to content

Commit b5da50f

Browse files
committed
Document linker solution for macOS in spawns crate also
1 parent c8ab5fb commit b5da50f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

spawns/src/lib.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@
5050
//! Noted that, all those compatibility features, injections should only active on tests and
5151
//! binaries. Otherwise, they will be propagated to dependents with unnecessary dependencies.
5252
//!
53+
//! For macOS users, you may have to put below to your `Cargo.toml` for above to function.
54+
//!
55+
//! ```toml
56+
//! [profile.dev]
57+
//! lto = "thin"
58+
//! ```
59+
//!
60+
//! See <https://github.com/dtolnay/linkme/issues/61> for sure.
61+
//!
5362
//! ## Dealing with multiple global executors
5463
//! Global executor cloud spawn task with no help from thread context. But this exposes us an
5564
//! dilemma to us, which one to use if there are multiple global executors present ? By default,

0 commit comments

Comments
 (0)