-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Adriano Santos
committed
Feb 11, 2023
1 parent
d31ee57
commit 31fea3e
Showing
6 changed files
with
16 additions
and
9 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ name = "spawn-examples" | |
version = "0.1.0" | ||
|
||
[dependencies] | ||
prost-types = "0.11" | ||
spawn-rs = {path = "../spawn-rs"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
use spawn_rs::Spawn; | ||
extern crate prost_types; | ||
|
||
mod joe; | ||
|
||
use spawn_rs::spawn::Spawn; | ||
|
||
fn main() { | ||
Spawn::new().system("spawn-system") | ||
Spawn::new() | ||
.system("spawn-system".to_string()) | ||
.port(8091) | ||
.add_actor(Box::new(joe::Joe {})) | ||
.start(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters