workerd 0.1.5

personal assistant running on local machine
1
2
3
4
5
6
7
8
9
10
11
use axum::Json;
use axum::response::IntoResponse;
use satway_build::CompileInfo;
use crate::api::ApiResponse;

/// compile information
///
 pub async fn version_info() -> impl IntoResponse{
    let compile_info=CompileInfo::load_from_str(include_str!("../../target/compile_info.txt"));
    Json(ApiResponse::ok(Box::new(compile_info.unwrap())))
}