parail 0.2.0

Easily switch between sequential and parallel.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "parail"
version = "0.2.0"
authors = ["Kanichi Uegaki <kan1.921017@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Easily switch between sequential and parallel."
homepage = "https://github.com/kan1-u/parail"
documentation = "https://docs.rs/parail"
readme = "README.md"
keywords = [
    "parallel",
    "iterator",
    "stream",
]
license = "MIT"

[features]
default = [
    "iter",
    "stream",
]
futures = ["dep:futures"]
iter = ["rayon"]
rayon = ["dep:rayon"]
stream = [
    "futures",
    "tokio/sync",
    "tokio/rt",
]
tokio = ["dep:tokio"]

[lib]
name = "parail"
path = "src/lib.rs"

[[example]]
name = "iter"
path = "examples/iter.rs"

[[example]]
name = "stream"
path = "examples/stream.rs"

[[bench]]
name = "bench"
path = "benches/bench.rs"
harness = false

[dependencies.futures]
version = "0.3.31"
optional = true

[dependencies.rayon]
version = "1.10.0"
optional = true

[dependencies.tokio]
version = "1.44.2"
optional = true
default-features = false

[dev-dependencies.criterion]
version = "0.5.1"
features = ["async_tokio"]

[dev-dependencies.tokio]
version = "1.44.2"
features = ["full"]