Set version to v1.1.0 and update dependencies

This commit is contained in:
NG (Graham) committed 2025-12-22 19:40:34 -05:00
1 parent d9f24e1859
commit 36100a34c4
6 files changed
+521 -254

No files matched your search

+1 -1
View File
@@ -24,4 +24,4 @@ serde_json.workspace = true
hex.workspace = true
oj_serdes.workspace = true
handlebars = { version = "5", features = ["dir_source"] }
handlebars = { version = "6", features = ["dir_source"] }
+8 -8
View File
@@ -35,18 +35,18 @@ async fn main() -> std::io::Result<()> {
let internal_auth = actix_web::web::Data::new(crate::robocraft::intercom::IntercomAuth::new(&cli_args.data_robocraft)?);
let user_registry = actix_web::web::Data::new(crate::robocraft::intercom::Users::new());
let mut handlebars = handlebars::Handlebars::new();
handlebars
let mut handlebars_conf = handlebars::Handlebars::new();
let mut dir_conf = handlebars::DirectorySourceOptions::default();
dir_conf.tpl_extension = ".html.hbs".to_owned();
dir_conf.hidden = false;
dir_conf.temporary = false;
handlebars_conf
.register_templates_directory(
std::path::PathBuf::from(&cli_args.assets_robocraft).parent().expect("Bad robocraft asset path").join("templates"),
handlebars::DirectorySourceOptions {
tpl_extension: ".html.hbs".to_owned(),
hidden: false,
temporary: false,
},
dir_conf,
)
.unwrap();
let handlebars_ref = actix_web::web::Data::new(handlebars);
let handlebars_ref = actix_web::web::Data::new(handlebars_conf);
HttpServer::new(move || {
App::new()