async-rt 0.2.0

A small library designed to utilize async executors through an common API while extending features.
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"
rust-version = "1.95.0"
name = "async-rt"
version = "0.2.0"
authors = ["Darius Clark"]
build = false
exclude = [".gitignore"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
A small library designed to utilize async executors through an common API while extending features.
"""
readme = "README.md"
keywords = [
    "async",
    "non-blocking",
    "futures",
]
categories = ["asynchronous"]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/dariusc93/async-rt"

[features]
compio = ["dep:compio"]
default = [
    "tokio",
    "lite",
    "macros",
]
fs = [
    "tokio?/fs",
    "tokio?/io-util",
    "compio?/fs",
    "dep:js-sys",
    "dep:wasm-bindgen",
    "dep:web-sys",
]
lite = []
macros = ["dep:async-rt-macros"]
net = [
    "tokio?/net",
    "tokio?/io-util",
    "compio?/net",
    "compio?/io-compat",
    "dep:libc",
    "dep:socket2",
]
smol = [
    "dep:async-task",
    "dep:smol",
]
threadpool = ["futures/thread-pool"]
tokio = ["dep:tokio"]

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

[[test]]
name = "macro_task_executor"
path = "tests/macro_task_executor.rs"

[[test]]
name = "macros"
path = "tests/macros.rs"

[dependencies.async-rt-macros]
version = "0.1.0"
optional = true

[dependencies.either]
version = "1.15.0"
optional = true

[dependencies.futures]
version = "0.3.31"
features = [
    "std",
    "alloc",
    "async-await",
]
default-features = false

[dependencies.futures-timeout]
version = "0.2"

[dependencies.parking_lot]
version = "0.12.5"

[dependencies.pollable-map]
version = "0.2.0"

[dependencies.thiserror]
version = "1.0.69"

[dev-dependencies.compio]
version = "0.19"
features = [
    "runtime",
    "macros",
]
default-features = false

[dev-dependencies.futures]
version = "0.3.31"
features = [
    "std",
    "alloc",
    "async-await",
    "thread-pool",
    "executor",
]
default-features = false

[dev-dependencies.futures-timer]
version = "3.0.3"

[dev-dependencies.tokio]
version = "1.49.0"
features = [
    "rt",
    "rt-multi-thread",
    "macros",
]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.async-task]
version = "4.7.1"
optional = true

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.compio]
version = "0.19"
features = ["runtime"]
optional = true
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.libc]
version = "0.2"
optional = true

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.smol]
version = "2.0.2"
optional = true

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.socket2]
version = "0.6"
optional = true

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "1.49.0"
features = [
    "rt",
    "rt-multi-thread",
]
optional = true

[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3.77"
optional = true

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2.100"
optional = true

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen-futures]
version = "0.4.50"

[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3.77"
features = [
    "File",
    "FileSystemCreateWritableOptions",
    "FileSystemDirectoryHandle",
    "FileSystemFileHandle",
    "FileSystemGetDirectoryOptions",
    "FileSystemGetFileOptions",
    "FileSystemRemoveOptions",
    "FileSystemWritableFileStream",
    "StorageManager",
]
optional = true