Rust webserver now working

This commit is contained in:
Arlo Filley 2022-09-29 09:37:35 +01:00
commit 756d77a1d8
3 changed files with 18 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/target
Cargo.lock

9
Cargo.toml Normal file
View File

@ -0,0 +1,9 @@
[package]
name = "cs_coursework"
version = "0.1.0"
edition = "2021"
[dependencies]
[dependencies.rocket]
version = "0.5.0-rc.2"

7
src/main.rs Normal file
View File

@ -0,0 +1,7 @@
#[macro_use] extern crate rocket;
use rocket::{Rocket, Build};
#[launch]
fn rocket() -> Rocket<Build> {
rocket::build()
}