# rust-ruoyi **Repository Path**: flutter-learning_2/rust-ruoyi ## Basic Information - **Project Name**: rust-ruoyi - **Description**: rust 项目。基于 rust actix-web rbatis tokio redis。数据库为postgresql - **Primary Language**: Rust - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 27 - **Created**: 2025-03-11 - **Last Updated**: 2025-03-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## rust-ruoyi ## 介绍 - rust作为新的流行语言,相对java springboot环境在cpu、内存资源占用、运行效率方面有巨大优势,基本框架提供开发者参照。 - 项目目标是更新rust、rbatis、rust-crypto等组件 在新环境运行正常。具备一定的生产运行能力 - 更新rust及相关组件,进行部分修改适配postgresql - 其中代码生成等后续实现 rust 项目。基于 rust actix-web rbatis tokio redis。数据库为postgresql #### 软件架构 软件架构说明 rust actix-web rbatis #### 安装教程 ## 数据库. postgresql 数据库 data/postgresql.conf的修改 postgresql数据库测试的有 13 至 16版本,需要设置 lc_messages lc_messages = 'en_US.UTF-8' 改完配置后需要重启数据库服务 ## 代码运行. vscode windows 运行 首先在 PowerShell 下设置环境变量 - $env:RUST_BACKTRACE=1 ; - $env:profile= "dev" ; - cargo run --bin ruoyi_rust_dev - $env:RUST_BACKTRACE=1 ; - $env:profile= "prod" ; - cargo run --bin ruoyi_rust_prod redis 和 postgresql 连接串检查好, 这两个连不上会报错 STACKOVERFLOW 什么errcode 。 后面会增加,连接检查 ## 代码生成 - codegen \下可以运行目前框架的代码生成 - 首先需要建立数据库表,如建立mall模块的 oms_order订单表 - 在codegen - 在codegen\src\main.rs 中写好模块名,表名,代码输出路径 - 运行cargo build 或者直接运行 cargo run - 运行后生成若依框架类似风格的代码 #### 使用说明 ## 演示图
## 若依前后端分离交流群 QQ群: [![加入QQ群](https://img.shields.io/badge/已满-937441-blue.svg)](https://jq.qq.com/?_wv=1027&k=5bVB1og) [![加入QQ群](https://img.shields.io/badge/已满-887144332-blue.svg)](https://jq.qq.com/?_wv=1027&k=5eiA4DH) [![加入QQ群](https://img.shields.io/badge/已满-180251782-blue.svg)](https://jq.qq.com/?_wv=1027&k=5AxMKlC) [![加入QQ群](https://img.shields.io/badge/104180207-blue.svg)](https://jq.qq.com/?_wv=1027&k=51G72yr) 点击按钮入群。 #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)