Skip to content
This repository has been archived by the owner on Sep 22, 2020. It is now read-only.

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed Jul 20, 2018
1 parent 90a06be commit f1419c9
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,34 +44,6 @@ impl Message for Sum {
fn main() {}
```

### Handler

Actix derive provide proc_macro attributes macro for nightly rust.

```rust
#![feature(proc_macro)]

extern crate actix;
extern crate actix_derive;
use actix_derive::*;

#[msg(usize)]
struct Sum {a: usize, b: usize}

struct SumActor;

#[actor(Context<_>)]
impl SumActor {

#[simple(Sum)]
fn sum(&mut self, a: usize, b: usize) -> usize {
a + b
}
}

fn main() {}
```

## License

This project is licensed under either of
Expand Down

0 comments on commit f1419c9

Please sign in to comment.