create new project

This commit is contained in:
falsycat 2023-05-27 11:46:24 +09:00
parent 9e7a7df1c4
commit 49a6cdbec6
3 changed files with 21 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/target

9
Cargo.toml Normal file
View File

@ -0,0 +1,9 @@
[package]
name = "fadaway"
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.3"

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])
}