Skip to content

Commit

Permalink
Document linker solution for macOS in spawns crate also
Browse files Browse the repository at this point in the history
  • Loading branch information
kezhuw committed May 6, 2024
1 parent c8ab5fb commit b5da50f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spawns/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@
//! Noted that, all those compatibility features, injections should only active on tests and
//! binaries. Otherwise, they will be propagated to dependents with unnecessary dependencies.
//!
//! For macOS users, you may have to put below to your `Cargo.toml` for above to function.
//!
//! ```toml
//! [profile.dev]
//! lto = "thin"
//! ```
//!
//! See <https://github.com/dtolnay/linkme/issues/61> for sure.
//!
//! ## Dealing with multiple global executors
//! Global executor cloud spawn task with no help from thread context. But this exposes us an
//! dilemma to us, which one to use if there are multiple global executors present ? By default,
Expand Down

0 comments on commit b5da50f

Please sign in to comment.