Updated to the latest version of Rocket
+ Added BCT section to resume
This commit is contained in:
parent
d1e376bcf7
commit
36f78e2678
1551
Cargo.lock
generated
1551
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -7,14 +7,9 @@ edition = "2018"
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
rocket = "0.4.5"
|
||||
rocket = "0.5.0-rc.1"
|
||||
serde = "1.0"
|
||||
serde_derive = "1.0"
|
||||
serde_json = "1.0"
|
||||
regex = "1.3.4"
|
||||
|
||||
[dependencies.rocket_contrib]
|
||||
version = "0.4.2"
|
||||
default-features = false
|
||||
features = ["tera_templates", "serve"]
|
||||
|
||||
rocket_dyn_templates = { version="0.1.0-rc.1", features=["tera"] }
|
||||
|
19
src/main.rs
19
src/main.rs
@ -11,8 +11,7 @@ mod rst_parser;
|
||||
use crate::rst_parser::parse_images;
|
||||
use regex::Regex;
|
||||
use rocket::Request;
|
||||
use rocket_contrib::serve::StaticFiles;
|
||||
use rocket_contrib::templates::Template;
|
||||
use rocket_dyn_templates::Template;
|
||||
use rst_parser::parse_links;
|
||||
use std::collections::HashMap;
|
||||
use std::error;
|
||||
@ -248,21 +247,17 @@ fn rst_page(page: PathBuf) -> Template {
|
||||
fn not_found(req: &Request<'_>) -> Template {
|
||||
let mut map = HashMap::new();
|
||||
|
||||
map.insert("error_page", String::from(req.uri().path()));
|
||||
map.insert("error_page", String::from(req.uri().path().as_str()));
|
||||
|
||||
Template::render("404", &map)
|
||||
}
|
||||
|
||||
/// Launches website
|
||||
fn rocket() -> rocket::Rocket {
|
||||
rocket::ignite()
|
||||
#[launch]
|
||||
fn rocket() -> _ {
|
||||
rocket::build()
|
||||
.mount("/", routes![index, rst_page])
|
||||
.mount("/static", StaticFiles::from("static"))
|
||||
.mount("/static", rocket::fs::FileServer::from("static"))
|
||||
.attach(Template::fairing())
|
||||
.register(catchers![not_found])
|
||||
}
|
||||
|
||||
/// Main
|
||||
fn main() {
|
||||
rocket().launch();
|
||||
.register("/",catchers![not_found])
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
Joey Hines - joey@ahines.net - Auburn,AL
|
||||
=========================================
|
||||
Joey Hines - joey@ahines.net - Westminster, CO
|
||||
==============================================
|
||||
|
||||
Education
|
||||
---------
|
||||
@ -16,6 +16,10 @@ Technical Skills
|
||||
|
||||
Work Experience
|
||||
---------------
|
||||
Blue Canyon Technologies - Flight Software Engineer - May 2021 to Present
|
||||
* Developed flight software for small satellite missions
|
||||
* Collaborated with mission operations to improve ground station capabilities
|
||||
|
||||
Auburn University - Graduate Research and Teaching Assistant - August 2019 to May 2021
|
||||
* Command and Data Handling (CDHS) team lead for a cube satellite project
|
||||
* Collaborated with other team members to develop mission software
|
||||
|
Loading…
x
Reference in New Issue
Block a user