Crates.io | bmbp_lib_ui |
lib.rs | bmbp_lib_ui |
version | 0.1.6 |
source | src |
created_at | 2024-08-07 14:30:47.116243 |
updated_at | 2024-08-31 09:56:26.585354 |
description | BMBP TERA CONTEXT VARS |
homepage | https://github.com/bmbper/bmbp_lib_ui |
repository | https://github.com/bmbper/bmbp_lib_ui |
max_upload_size | |
id | 1328463 |
size | 5,044,738 |
bmbp/ui/lib/arco/arco-icon.min.js
bmbp/ui/lib/arco/arco.min.css
bmbp/ui/lib/arco/arco.min.js
bmbp/ui/lib/bmbp/bmbp.css
bmbp/ui/lib/bootstrap5/css/bootstrap.css
bmbp/ui/lib/bootstrap5/css/bootstrap.min.css
bmbp/ui/lib/bootstrap5/js/bootstrap.js
bmbp/ui/lib/bootstrap5/js/bootstrap.min.js
bmbp/ui/lib/bootstrap5/js/popper.min.js
bmbp/ui/lib/react/react-dom.production.min.js
bmbp/ui/lib/react/react-dom.profiling.min.js
bmbp/ui/lib/react/react.production.min.js
bmbp/ui/lib/axios.min.js
bmbp/ui/lib/http.js
Cargo.toml
[dependencies]
bmbp_lib_ui = "0.1.1"
rust-embed = "8.5.0"
salvo = {version="0.69.0", features = ["serve-static"] }
tokio = { version = "1.38.0", features = ["full"] }
tracing = "0.1.40"
tracing-subscriber = { version = "0.3.16", features = ["env-filter"] }
use bmbp_lib_ui::*;
use salvo::prelude::*;
#[tokio:main]
async fn main() {
tracing_subscriber::fmt().init();
let host = "0.0.0.0:7027";
tracing::info!("启动初始化服务,监听地址:{}......", host);
let acceptor = TcpListener::new(host).bind().await;
let router = build_bmbp_ui_lib_router();
Server::new(acceptor).serve(router).await;
}