+ Lazy static because we need to start caching
and avoid insane heap allocations
This commit is contained in:
@@ -9,6 +9,7 @@ edition = "2018"
|
||||
rocket = { version = "0.5.0-rc.1", features = [ "json" ] }
|
||||
tokio = "1.0"
|
||||
serde = { version = "1.0", features = [ "derive" ] }
|
||||
lazy_static = "1.4.0"
|
||||
|
||||
|
||||
[dependencies.rocket_dyn_templates]
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#![feature(decl_macro)]
|
||||
#[macro_use] extern crate rocket;
|
||||
#[macro_use] extern crate lazy_static;
|
||||
use std::env;
|
||||
use rocket_dyn_templates::Template;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user