-
利用QuickJS和Rust进行Vue SSR的快速实验项目:fast-vue-ssr
资源介绍
带有Rust和QuickJS的Fast Vue SSR
使用 , 和进行服务器端渲染Vue.js应用程序的正在进行的实验。
use renderer :: RendererPool;
#[tokio::main]
pub async fn main () -> io:: Result <()> {
let pool = Arc :: new (Mutex :: new (RendererPool :: new ( 64 )));
let renderer = warp :: path :: full (). map ( move | path: FullPath | {
let renderer = Arc :: clone ( & pool);
let s = path. as_str (). to_string ();