diff options
Diffstat (limited to 'ipfs-api/examples/get_commands.rs')
-rw-r--r-- | ipfs-api/examples/get_commands.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ipfs-api/examples/get_commands.rs b/ipfs-api/examples/get_commands.rs index 4557b70..4aa91ce 100644 --- a/ipfs-api/examples/get_commands.rs +++ b/ipfs-api/examples/get_commands.rs @@ -32,7 +32,8 @@ fn print_recursive(indent: usize, cmd: &response::CommandsResponse) { // Creates an Ipfs client, and gets a list of available commands from the // Ipfs server. // -#[tokio::main] +#[cfg_attr(feature = "actix", actix_rt::main)] +#[cfg_attr(feature = "hyper", tokio::main)] async fn main() { eprintln!("connecting to localhost:5001..."); |