diapause 0.2.0

Coroutines/generators for stable Rust via code transformation — no async, no Pin, no allocation, no unsafe code
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.88"
name = "diapause"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Coroutines/generators for stable Rust via code transformation — no async, no Pin, no allocation, no unsafe code"
readme = "README.md"
keywords = [
    "coroutine",
    "generator",
    "yield",
    "state-machine",
    "no-std",
]
categories = [
    "rust-patterns",
    "no-std",
    "no-std::no-alloc",
]
license = "MIT"
repository = "https://github.com/todesking/diapause"

[features]
alloc = []
default = ["alloc"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.diapause-macro]
version = "0.2.0"

[dev-dependencies.serde]
version = "1"
features = ["derive"]

[dev-dependencies.serde_json]
version = "1"

[dev-dependencies.trybuild]
version = "1"