Added instructions to include dependencies in Cargo.toml

This commit is contained in:
Spencer Flagg
2022-03-28 12:01:44 +02:00
committed by GitHub
parent a2fcd07011
commit 36410ad6d1

View File

@@ -57,6 +57,14 @@ In ``main.rs`` add:
}
}
And in ``Cargo.toml``, make sure your dependencies section looks like this:
.. code:: toml
[dependencies]
hyper = { version = "0.14.4", features = ["server", "http1", "http2", "tcp", "stream"] }
tokio = { version = "1.4.0", features = ["full"] }
**That's it!** We now have the code for our service.
@@ -69,4 +77,4 @@ Let's build and run it!
# start the executable
target/debug/hello-world
Visit `<http://localhost:80>`_ to see your running web page!
Visit `<http://localhost:80>`_ to see your running web page!