issues
search
hhstore
/
blog
My Tech Blog: about Mojo / Rust / Golang / Python / Kotlin / Flutter / VueJS / Blockchain etc.
https://github.com/hhstore/blog/issues
294
stars
24
forks
source link
Rust: Web
#347
Open
hhstore
opened
2 years ago
hhstore
commented
2 years ago
related:
[x] #364
[x] #343
[x] #370
[x] #371
[x] #247
[x] #368
hhstore
commented
2 years ago
Rust Web 开发方案:
Rust Web 前后端开发方案调研.
https://github.com/rust-unofficial/awesome-rust
web 框架:
https://github.com/SergioBenitez/Rocket
首选
新版, 已支持异步(tokio)
https://github.com/tokio-rs/axum
支持 ws
文档很差, 生态很差.
持续关注.
https://github.com/actix/actix-web
支持 ws
对比评测:
https://github.com/flosse/rust-web-framework-comparison
async io:
https://github.com/tokio-rs/tokio
https://github.com/tokio-rs/mio
HTTP/GraphQL:
HTTP:
https://github.com/seanmonstar/reqwest
https://github.com/hyperium/hyper
GraphQL:
https://github.com/async-graphql/async-graphql
https://github.com/graphql-rust/graphql-client
WebSocket:
https://github.com/snapview/tokio-tungstenite
https://github.com/snapview/tungstenite-rs
https://github.com/housleyjk/ws-rs
https://github.com/vi/websocat
示例:
https://github.com/tokio-rs/axum/blob/main/examples/websockets/src/main.rs#L48
基于 axum
gRPC/Protobuf:
gRPC:
https://github.com/hyperium/tonic
https://github.com/tikv/grpc-rs
https://github.com/stepancheg/grpc-rust
Protobuf:
https://github.com/tokio-rs/prost
https://github.com/stepancheg/rust-protobuf
Wasm:
https://github.com/yewstack/yew
https://github.com/seed-rs/seed
https://github.com/chinedufn/percy
hhstore
commented
2 years ago
中间件:
redis:
https://github.com/mitsuhiko/redis-rs
flask 作者写的. 质量 OK.
kafka:
https://github.com/rust-unofficial/awesome-rust#distributed-systems
https://github.com/kafka-rust/kafka-rust
https://github.com/fede1024/rust-rdkafka
orm:
推荐:
https://github.com/rbatis/rbatis
国人项目, 配套 admin, 比较完善
支持异步
其他:
https://github.com/SeaQL/sea-orm
蛮多项目使用
https://rustmagazine.github.io/rust_magazine_2021/chapter_10/seaorm.html
https://www.sea-ql.org/SeaORM/docs/next/introduction/tutorial
但是, 实际使用体验很糟. 因为宏, 源码无法跳转, debug 分析效率极低.
异步 IO
基于 sqlx
⭐⭐
https://github.com/diesel-rs/diesel
比较成熟, 不支持异步.
⭐⭐ ⭐⭐
hhstore
commented
2 years ago
admin:
https://github.com/rbatis/abs_admin
admin UI:
https://github.com/rbatis/abs_admin_vue
hhstore
commented
2 years ago
1
hhstore
commented
2 years ago
1
hhstore
commented
2 years ago
1
hhstore
commented
2 years ago
1
hhstore
commented
2 years ago
1
related: