# 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.85"
name = "kwokka"
version = "0.1.0"
authors = ["Pablo <pablo@kwokka.dev>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "completion-based async runtime with optional orchestration"
homepage = "https://kwokka.dev"
readme = "README.md"
keywords = [
    "async",
    "runtime",
    "io-uring",
    "completion",
    "kwokka",
]
categories = [
    "asynchronous",
    "concurrency",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/kwokkas/kwokka"

[package.metadata.docs.rs]
features = ["full"]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[package.metadata.cargo-machete]
ignored = [
    "kwokka-core",
    "kwokka-macros",
    "kwokka-runtime",
    "kwokka-net",
    "kwokka-fs",
]

[features]
fs = ["dep:kwokka-fs"]
full = [
    "net",
    "fs",
    "stealing",
]
net = ["dep:kwokka-net"]
stealing = ["kwokka-runtime/steal"]

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

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

[[example]]
name = "file_read"
path = "examples/file_read.rs"
required-features = ["fs"]

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

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

[[example]]
name = "stealing"
path = "examples/stealing.rs"
required-features = ["stealing"]

[[example]]
name = "tcp_echo"
path = "examples/tcp_echo.rs"
required-features = ["net"]

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

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

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

[dependencies.kwokka-core]
version = "0.0.1"

[dependencies.kwokka-fs]
version = "0.0.2"
optional = true

[dependencies.kwokka-macros]
version = "0.0.1"

[dependencies.kwokka-net]
version = "0.0.2"
optional = true

[dependencies.kwokka-runtime]
version = "0.0.2"

[lints.clippy]
allow_attributes_without_reason = "deny"
cargo_common_metadata = "allow"
clone_on_ref_ptr = "warn"
dbg_macro = "deny"
exit = "deny"
expect_used = "deny"
missing_errors_doc = "warn"
missing_panics_doc = "warn"
missing_safety_doc = "deny"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
must_use_candidate = "allow"
print_stdout = "deny"
self_named_module_files = "deny"
todo = "warn"
undocumented_unsafe_blocks = "deny"
unimplemented = "warn"
unwrap_used = "deny"

[lints.clippy.all]
level = "deny"
priority = -1

[lints.clippy.cargo]
level = "warn"
priority = -1

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_op_in_unsafe_fn = "deny"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(loom)"]
