Skip to content

Single threaded as a feature (supporting WASM/WebAssembly?) #39

@TiemenSch

Description

@TiemenSch

Would you consider allowing a single-threaded approach where rayon/multithreading could be disabled by means of a feature flag?

My underlying use case would be that multithreading is unsupported for the regular WebAssembly target.

For the WebAssembly use case specifically, the alternative would be using a rayon adapter relying on SharedArrayBuffers and Rust nightly (https://github.com/RReverser/wasm-bindgen-rayon). Although that requires nightly Rust and specific headers (when embedding on websites), so that may be a bit much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions