summaryrefslogtreecommitdiffstats
path: root/ipfs-api/examples/mfs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ipfs-api/examples/mfs.rs')
-rw-r--r--ipfs-api/examples/mfs.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/ipfs-api/examples/mfs.rs b/ipfs-api/examples/mfs.rs
index b6e3c99..3d6419c 100644
--- a/ipfs-api/examples/mfs.rs
+++ b/ipfs-api/examples/mfs.rs
@@ -20,7 +20,8 @@ fn print_stat(stat: response::FilesStatResponse) {
// Creates an Ipfs client, and makes some calls to the Mfs Api.
//
-#[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...");