Skip to content

Derive macro for actix framework

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

mehcode/actix-derive

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

actix-derive Build Status crates.io

Actix is a rust actor framework.


Actix is licensed under the Apache-2.0 license.

Features

  • actix-derive adds support for Rust Custom Derive / Macros 1.1 to actix

Usage

#[macro_use] extern crate actix_derive;

use std::io::Error;

#[derive(Message)]
#[rtype(result="Result<usize, Error>")]
struct Sum(usize, usize);

fn main() {}

This code expands into following code:

extern crate actix;
use std::io::Error;
use actix::Message;

struct Sum(usize, Error);

impl Message for Sum {
    type Result = Result<usize, Error>;
}

fn main() {}

License

This project is licensed under either of

at your option.

About

Derive macro for actix framework

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 100.0%