thread-mode

Crates.iothread-mode
lib.rsthread-mode
version0.0.1
created_at2026-01-22 15:15:06.445747+00
updated_at2026-01-22 15:15:06.445747+00
descriptionSwitching code from multi-threaded to single-threaded
homepage
repositoryhttps://github.com/nnx12/thread-mode
max_upload_size
id2061900
size10,403
Nero (nnx12)

documentation

README

This crate is used to create several variations of code for different operating modes of programs (multithread or singlethread)

WARNING

Do not enable singlethread feature in your libraries!!!

This feature is intended for end consumer use only.

Use

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
Commit count: 5

cargo fmt