# 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 - 运行后生成若依框架类似风格的代码 #### 使用说明 ## 演示图
![]() |
![]() |
![]() |
![]() |