future-fn 11.1.0

A Rust library providing macros to simplify the creation of asynchronous closures with external state captured by move. Useful for structuring asynchronous code with ease and clarity.
Documentation

future-fn

Move-Capturing Async Closure Macros

crates.io docs.rs Rust 2024 License: MIT

Workspace Overview · API Docs · Agent Engineering Rules


Overview

Declarative macro collection simplifying async closure construction with owned state moved cleanly into generated futures.

This package is part of the ctares unified Rust 2024 workspace and follows the repository's strict module purity, formatting, and dependency-ordered release standards.

Responsibilities & Module Layout

  • macro — Async closure capture helpers eliminating manual Arc::clone and Box::pin boilerplate

Installation & Quick Start

cargo add future-fn
use future_fn::*;

// Wrap owned state into reusable async closures without manual move scaffolding.

Verification

Run crate-scoped formatting, lint, and test checks from the workspace root:

cargo run -p crate-cli -- fmt --check
cargo clippy -p future-fn --all-features --all-targets -- -D warnings
cargo test -p future-fn --all-features

Documentation & Governance

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For inquiries, please contact the author at root@devhub.vip.