上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 49 下一页
摘要: 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)
摘要: 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)
摘要: 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)
摘要: 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)
摘要: 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)
摘要: 单文件和多文件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)
摘要: 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)
摘要: 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)
摘要: 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)
摘要: <!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 下一页