https://github.com/licheng1013/rust-study
rust 学习
https://github.com/licheng1013/rust-study
actix-web demo rbatis rbdc-mysql rust rust-lang rust-study ruststudy salvo sea-orm study
Last synced: 16 days ago
JSON representation
rust 学习
- Host: GitHub
- URL: https://github.com/licheng1013/rust-study
- Owner: licheng1013
- Created: 2022-11-11T03:01:36.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-04-26T07:39:33.000Z (almost 2 years ago)
- Last Synced: 2024-04-27T07:29:40.318Z (almost 2 years ago)
- Topics: actix-web, demo, rbatis, rbdc-mysql, rust, rust-lang, rust-study, ruststudy, salvo, sea-orm, study
- Language: Rust
- Homepage: https://licheng1013.github.io/try/rust.html
- Size: 571 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 目录
## 介绍
- 开始rust学习
- 2022/10/22
- Actix框架的基本使用
- 本项目包含了大部分示例,请放心食用!
- 个人博客Gitee: [https://licheng1013.gitee.io/](https://licheng1013.gitee.io/)
- 个人博客Github: [https://licheng1013.github.io/](https://licheng1013.github.io/)
## Idea-Plugin
- Web框架示例 [https://github.com/licheng1013/rust-tool-example](https://github.com/licheng1013/rust-tool-example)
## Actix
- 官网: [https://actix.rs/](https://actix.rs/)
- github: [https://github.com/actix/actix-web](https://github.com/actix/actix-web)
## 学习
- 2022/10/29
- 路由->ok
- Mysql->ok
- Redis->ok
- web中间件编写->ok
- 文件上传->ok
- 请求传参—>ok
- 路径传参->ok
- 多模块设计->ok
- 列表->ok
- map->ok
- 闭包->ok
- 线程->ok
- 多态->ok
## 工作空间
- 项目运行的路径 -> 项目根目录
- 创建包的两种形式!
- bin -> 运行程序
- lib -> 依赖库
## 打包
- 获取可以打包的列表
- rustc --print target-list
- rustup target add x86_64-unknown-linux-musl
### Linux
- 请在Linux上打包问题少。
- 默认打包本平台: cargo build --release
- cargo build --release --target=x86_64-unknown-linux-musl
### 切换环境
- 切换到尝新环境
- rustup override set nightly
- 切换到稳定环境
- rustup override set stable
### 工具
- 修复代码
- cargo fix