vamo-macros

Crates.iovamo-macros
lib.rsvamo-macros
version0.0.5
created_at2025-09-30 16:12:05.675012+00
updated_at2025-12-09 18:44:28.301137+00
descriptionmacros for vamo to automate resource trait generation
homepage
repositoryhttps://github.com/ararog/deboa
max_upload_size
id1861336
size118,813
ararog (ararog)

documentation

README

Vamo Macros

Crates.io downloads crates.io Build Status Crates.io MSRV Documentation MIT licensed Codecov

Vamo macros is a collection of macros to make possible use structs as resources to be sent over vamo as client.

Usage

use vamo_macros::Resource;
use vamo::{Vamo, ResourceMethod};

#[derive(Resource)]
#[name("posts")]
#[body_type(JsonBody)]
pub struct User {
    #[rid]
    id: i32,
    name: String,
}

let mut vamo = Vamo::new("https://api.example.com")?;
let response = vamo.create(user).await?;

Features

  • derive macro for resource trait implementation

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

License

MIT

Authors

Commit count: 14

cargo fmt