Example: add dependencies to distributor (#329)

This commit is contained in:
Cédric 2021-04-21 14:06:59 +02:00 committed by GitHub
parent 055637728b
commit 7fb016ced9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 0 deletions

View File

@ -61,6 +61,20 @@
///! // We create the function to exec when each children is called
///! .with_exec(move |ctx: BastionContext| async move { /* ... */ })
///! ```
/*
* cargo.toml:
*
* [dependencies]
* anyhow = "1.0.40"
* bastion = { git = "https://github.com/bastion-rs/bastion" }
* rand = "0.8.3"
* tracing = "0.1.25"
* tracing-subscriber = "0.2.17"
*
*/
use anyhow::{anyhow, Context, Result as AnyResult};
use bastion::distributor::*;
use bastion::prelude::*;