mirror of
https://github.com/Start9Labs/documentation.git
synced 2026-03-26 10:21:53 +00:00
Merge pull request #102 from spencerflagg/patch-1
Added instructions to include dependencies in Cargo.toml
This commit is contained in:
@@ -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!
|
||||
|
||||
Reference in New Issue
Block a user