summaryrefslogtreecommitdiffstats
path: root/ipfs-api/examples/get_commands.rs
diff options
context:
space:
mode:
authorFerris Tseng <ferristseng@fastmail.fm>2021-01-18 21:10:03 -0500
committerGitHub <noreply@github.com>2021-01-18 21:10:03 -0500
commitf8826be86fed99e01d7d27e8625a954fba74befe (patch)
treec1a094f6fb6a0204ab22b286087832d4ffabada6 /ipfs-api/examples/get_commands.rs
parent57f27461943670f3d024e0e4ece9fb2a15035344 (diff)
parentd53e6d335c3cfde51f6ceebd2da5306f5ed86ce8 (diff)
Merge pull request #64 from jcaesar/optional-tls
allow hyper-rustls or no tls as alternatives for hyper-tls
Diffstat (limited to 'ipfs-api/examples/get_commands.rs')
-rw-r--r--ipfs-api/examples/get_commands.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipfs-api/examples/get_commands.rs b/ipfs-api/examples/get_commands.rs
index 4aa91ce..5ca7b00 100644
--- a/ipfs-api/examples/get_commands.rs
+++ b/ipfs-api/examples/get_commands.rs
@@ -32,8 +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.
//
-#[cfg_attr(feature = "actix", actix_rt::main)]
-#[cfg_attr(feature = "hyper", tokio::main)]
+#[cfg_attr(feature = "with-actix", actix_rt::main)]
+#[cfg_attr(feature = "with-hyper", tokio::main)]
async fn main() {
eprintln!("connecting to localhost:5001...");