Docs.rs
fbc-starter-0.1.2
fbc-starter 0.1.2
Docs.rs crate page
MIT
OR
Apache-2.0
Links
Homepage
Repository
crates.io
Source
Owners
fangbc5
Dependencies
anyhow ^1.0
normal
async-trait ^0.1
normal
axum ^0.7
normal
chrono ^0.4
normal
config ^0.14
normal
dotenvy ^0.15
normal
once_cell ^1.19
normal
redis ^0.24
normal
optional
serde ^1.0
normal
serde_json ^1.0
normal
sqlx ^0.7
normal
optional
thiserror ^1.0
normal
time ^0.3
normal
tokio ^1.35
normal
tower ^0.4
normal
tower-http ^0.5
normal
tracing ^0.1
normal
tracing-subscriber ^0.3
normal
reqwest ^0.11
dev
Versions
73.33%
of the crate is documented
Go to latest version
Platform
aarch64-apple-darwin
aarch64-unknown-linux-gnu
i686-pc-windows-msvc
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
start
fbc_
starter
0.1.2
fbc_starter
Function
start
Copy item path
Source
pub async fn start() ->
Result
<
()
,
Box
<dyn
Error
>>
Expand description
启动 Web 服务器(自动加载配置和初始化日志)
此函数会:
从环境变量加载配置(.env 文件)
初始化日志系统(时区设置为 +8)
启动 Web 服务器