DeepCausality Parallel traits
Shared parallelism primitives for the DeepCausality workspace.
The crate currently carries one item: MaybeParallel, the
feature-conditional thread-safety marker used by the parallel features of
deep_causality_topology and deep_causality_fft. With
--features parallel the trait is a Send + Sync alias
(blanket-implemented); without it the trait is vacuous, so serial builds
carry no extra bounds.
Hosting the marker in one Tier-0 crate guarantees a single definition:
downstream crates forward their own parallel feature to
deep_causality_par/parallel, and Cargo feature unification keeps every
crate in a build agreeing on what the bound means.
Forward-looking: this crate is the designated home for a minimal in-house replacement of the Rayon surface the workspace actually uses (scoped fork-join over slices), should the external dependency ever need to go.
No unsafe — the crate opts into the workspace-wide
unsafe_code = "forbid" lint policy.
Contribution
Contributions are welcomed especially related to documentation, example code, and fixes. If unsure where to start, just open an issue and ask.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in deep_causality by you, shall be licensed under the MIT licence, without any additional terms or conditions.
Licence
This project is licensed under the MIT license.
Security
For details about security, please read the security policy.