Rocket on Fedora
This post is a very small example of how you can start creating small web apps with Rocket which extensively uses Rust under the hood. This post will just give an idea about how to get started if you are totally new to rust.
Now,it's time to update the source main.rs file with some values to show up when we run the up. In my case , I have given a static str.
Rocket is a web framework for Rust that makes it simple to write fast web applications without sacrificing flexibility or type safety. All with minimal code. - rocket.rs
Getting started:
Start by installing rust nightly on your system or virtual box:$ curl -sSf https://static.rust-lang.org/rustup.sh | sh -s -- --channel=nightly
Setting up Project and Dependencies:
Setting up the project is easy cas you can go ahead and execute
cargo new hello-rocket --bin
Once the execution is completes , you will have a binary application created with a Cargo.toml file and src dir with main.rs inside it.
For setting up the dependencies you need to update the Cargo.toml file.
For setting up the dependencies you need to update the Cargo.toml file.
Compile and Deploy on Local Host:
Deployment is easy , all you need to do is to execute
cargo run
Outcome:
Localhost will have the data which in this case the str which I passed.
ReplyDelete1. The only place where you mention Fedora is title. I don't see how it's relevant that you are using this distro.
2. It would be much lighter (in size) and more readable if instead of screenshots you would provide source code as text.
SMM PANEL
ReplyDeleteSmm panel
iş ilanları
İnstagram takipçi satın al
Https://www.hirdavatciburada.com/
beyazesyateknikservisi.com.tr
servis
tiktok jeton hilesi
Appreciation for sharing this bend towards. I in truth other than your weblog uncover no think about packs. you have in truth shared an illuminating and drawing in weblog dissipate following individuals.. Quick Heal Product Key
ReplyDeletei'm glad to find this say incredibly profitable for me, since it involves part of are searching for. I consistently choose to affirmation the man or woman content and this case I found in you announce. much gratitude to you for sharing. Online Wifi Password Hacker Without Survey
ReplyDeleteIve been attempting to find a few respectable stuff concerning the challenge and dock't had any good fortune going on till this narrowing, You simply got a subsidiary biggest lover!.. GoodBye Quotes For Lover
ReplyDelete