上一页 1 2 3 4 5 6 7 ··· 43 下一页
摘要: 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 阅读(16) 评论(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 阅读(4) 评论(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 阅读(2) 评论(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 阅读(19) 评论(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 阅读(11) 评论(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 阅读(23) 评论(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 阅读(7) 评论(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 阅读(12) 评论(0) 推荐(0) 编辑
摘要: package main import ( "fmt" "time" ) func batchProcessor(ch <-chan string, batchSize int, flushInterval time.Duration) { var batch []string timer := t 阅读全文
posted @ 2024-10-25 13:54 朝阳1 阅读(6) 评论(0) 推荐(0) 编辑
摘要: toml jsonwebtoken = "9" rs use serde::{Deserialize, Serialize}; use chrono::Utc; use jsonwebtoken::errors::ErrorKind; use jsonwebtoken::{decode, encod 阅读全文
posted @ 2024-10-23 17:31 朝阳1 阅读(9) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 43 下一页