summaryrefslogtreecommitdiffstats
path: root/ipfs-api/examples/add_tar.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ipfs-api/examples/add_tar.rs')
-rw-r--r--ipfs-api/examples/add_tar.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/ipfs-api/examples/add_tar.rs b/ipfs-api/examples/add_tar.rs
index 7d2976e..0bf0eb9 100644
--- a/ipfs-api/examples/add_tar.rs
+++ b/ipfs-api/examples/add_tar.rs
@@ -13,7 +13,8 @@ use tar::Builder;
// 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...");