future_form_macros

Crates.iofuture_form_macros
lib.rsfuture_form_macros
version0.2.0
created_at2026-01-26 00:27:36.113797+00
updated_at2026-01-26 00:27:36.113797+00
descriptionProc macros for future_form
homepage
repositoryhttps://codeberg.org/expede/future_form
max_upload_size
id2069893
size25,851
Brooklyn Zelenka (expede)

documentation

README

future_form_macros

Proc macros for future_form.

This crate provides the #[future_form] attribute macro for generating concrete trait implementations from generic FutureForm impls.

Usage

use future_form::{future_form, FutureForm};

// Generate both Sendable and Local impls
#[future_form(Sendable, Local)]
impl<K: FutureForm> MyTrait<K> for MyType<K> { ... }

// Generate only specific variants
#[future_form(Sendable)]        // Only Sendable
#[future_form(Local)]           // Only Local
#[future_form(Sendable, Local)] // Both

// Custom FutureForm types are also supported
#[future_form(Sendable, Local, MyCustomForm)]
impl<K: FutureForm> MyTrait<K> for MyType<K> { ... }

// Add bounds only for specific variants
#[future_form(Sendable where T: Send, Local)]
impl<K: FutureForm, T: Clone> Processor<K> for Container<T> { ... }

See the future_form crate for full documentation.

License

Licensed under either of:

at your option.

Commit count: 7

cargo fmt