diff options
Diffstat (limited to 'ipfs-api/examples/add_file.rs')
-rw-r--r-- | ipfs-api/examples/add_file.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ipfs-api/examples/add_file.rs b/ipfs-api/examples/add_file.rs index 798a5f2..3015684 100644 --- a/ipfs-api/examples/add_file.rs +++ b/ipfs-api/examples/add_file.rs @@ -11,7 +11,8 @@ use std::fs::File; // Creates an Ipfs client, and adds this source file to Ipfs. // -#[tokio::main] +#[cfg_attr(feature = "actix", actix_rt::main)] +#[cfg_attr(feature = "hyper", tokio::main)] async fn main() { eprintln!("note: this must be run in the root of the project repository"); eprintln!("connecting to localhost:5001..."); |