Merge pull request #102 from spencerflagg/patch-1

Added instructions to include dependencies in Cargo.toml
This commit is contained in:
kn0wmad
2022-03-28 12:32:09 -06:00
committed by GitHub

View File

@@ -57,6 +57,14 @@ In ``main.rs`` add:
}
}
Finally, in our ``Cargo.toml``, we need to add some dependencies, which will look 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!