Boilerplats

This commit is contained in:
BurnyLlama 2021-12-06 19:53:37 +01:00
parent 84a8aa9794
commit bc26955ae4
3 changed files with 25 additions and 0 deletions

5
.gitignore vendored
View File

@ -11,3 +11,8 @@ Cargo.lock
# These are backup files generated by rustfmt
**/*.rs.bk
# Added by cargo
/target

9
Cargo.toml Normal file
View File

@ -0,0 +1,9 @@
[package]
name = "school_labs"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
rocket = "0.5.0-rc.1"

11
src/main.rs Normal file
View File

@ -0,0 +1,11 @@
#[macro_use] extern crate rocket;
#[get("/")]
fn index() -> &'static str {
"Hello, world!"
}
#[launch]
fn rocket() -> _ {
rocket::build().mount("/", routes![index])
}