会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
qcy-blog
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
5
6
7
8
9
10
11
12
13
···
49
下一页
2024年11月6日
log4rs输出json格式日志
摘要: toml log = "0.4" log4rs = "1.3" rs use log::{error, info, warn, LevelFilter}; use log4rs::{ append::console::ConsoleAppender, config::{Appender, Root}
阅读全文
posted @ 2024-11-06 09:21 朝阳1
阅读(40)
评论(0)
推荐(0)
2024年11月5日
actix-web使用tklog
摘要: toml [package] name = "tklog" version = "0.1.0" edition = "2021" [dependencies] tklog = "0.2.6" tokio = "1.40" log = "0.4" actix-web = "4" backtrace =
阅读全文
posted @ 2024-11-05 16:01 朝阳1
阅读(92)
评论(0)
推荐(0)
tklog日志库使用
摘要: git地址 https://github.com/donnie4w/tklog toml [dependencies] tklog = "0.2.6" tokio = "1.40" log = "0.4" 结合系统自带的日志库 use std::{thread, time::Duration}; u
阅读全文
posted @ 2024-11-05 14:52 朝阳1
阅读(77)
评论(0)
推荐(0)
2024年11月4日
actix-web构建RESTful API --基于内存
摘要: cargo new book_api cd book_api toml [dependencies] actix-web = "4.0" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" rs use acti
阅读全文
posted @ 2024-11-04 11:11 朝阳1
阅读(36)
评论(0)
推荐(0)
2024年11月1日
Go:select时,如果通道已经关闭会怎么样?
摘要: 1.for循环里被关闭的通道 package main import ( "fmt" "time" ) func main() { c := make(chan int) go func() { time.Sleep(time.Second) c <- 10 close(c) }() for { s
阅读全文
posted @ 2024-11-01 14:31 朝阳1
阅读(29)
评论(0)
推荐(0)
2024年10月30日
rocket实现文件单/多文件上传
摘要: 单文件和多文件html的区别就是multiple toml [dependencies] rocket = "0.5.1" [package.metadata.rocket] config = "Rocket.toml" Rocket.toml 配置文件上传的大小限制 # Rocket.toml [
阅读全文
posted @ 2024-10-30 11:16 朝阳1
阅读(58)
评论(0)
推荐(0)
2024年10月29日
rust写php扩展
摘要: php版本必须>=8.0 文档地址 https://docs.rs/ext-php-rs/0.12.0/ext_php_rs/index.html 创建lib项目 cargo new ext_php_rs --lib cd ext_php_rs 编辑toml [dependencies] ext-p
阅读全文
posted @ 2024-10-29 11:36 朝阳1
阅读(88)
评论(0)
推荐(0)
rust+tikio实现websocket
摘要: toml [dependencies] libc = "0.2.98" tokio = { version="1.8.1", features=["sync", "time", "rt-multi-thread","macros"] } tokio-tungstenite = "0.15.0" tu
阅读全文
posted @ 2024-10-29 09:18 朝阳1
阅读(284)
评论(0)
推荐(0)
2024年10月25日
actix_web操作redis
摘要: toml actix-web = "4" redis = { version = "0.21.4", features = ["r2d2"] } r2d2 = "0.8.9" r2d2_redis = "0.14.0" uuid = { version = "0.8", features = ["v
阅读全文
posted @ 2024-10-25 17:11 朝阳1
阅读(75)
评论(0)
推荐(0)
2048小游戏
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>2048 Game</title> </head> <style> body { font-family: Arial, sans-serif; display
阅读全文
posted @ 2024-10-25 14:14 朝阳1
阅读(59)
评论(0)
推荐(0)
上一页
1
···
5
6
7
8
9
10
11
12
13
···
49
下一页
公告