| Crates.io | thread-mode |
| lib.rs | thread-mode |
| version | 0.0.1 |
| created_at | 2026-01-22 15:15:06.445747+00 |
| updated_at | 2026-01-22 15:15:06.445747+00 |
| description | Switching code from multi-threaded to single-threaded |
| homepage | |
| repository | https://github.com/nnx12/thread-mode |
| max_upload_size | |
| id | 2061900 |
| size | 10,403 |
This crate is used to create several variations of code for different operating modes of programs (multithread or singlethread)
Do not enable singlethread feature in your libraries!!!
This feature is intended for end consumer use only.
When the singlethread feature is enabled, libraries will be recompiled that use thread-mode.
Example import for your libraries (Cargo.toml):
[dependencies]
thread-mode = "*"
Example import for your binaries (Cargo.toml):
[dependencies]
thread-mode = { version = "*", features = ["singlethread"] } # singlethread mode for all crates
#OR
thread-mode = { version = "*" } # multithread mode for all crates