mirror of
https://github.com/Start9Labs/documentation.git
synced 2026-03-31 04:23:41 +00:00
Added instructions to include dependencies in Cargo.toml
This commit is contained in:
@@ -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.
|
**That's it!** We now have the code for our service.
|
||||||
|
|
||||||
@@ -69,4 +77,4 @@ Let's build and run it!
|
|||||||
# start the executable
|
# start the executable
|
||||||
target/debug/hello-world
|
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