摘要:
git地址 https://github.com/donnie4w/tklog toml [dependencies] tklog = "0.2.6" tokio = "1.40" log = "0.4" 结合系统自带的日志库 use std::{thread, time::Duration}; u 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
单文件和多文件html的区别就是multiple toml [dependencies] rocket = "0.5.1" [package.metadata.rocket] config = "Rocket.toml" Rocket.toml 配置文件上传的大小限制 # Rocket.toml [ 阅读全文
摘要:
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 阅读全文
摘要:
toml [dependencies] libc = "0.2.98" tokio = { version="1.8.1", features=["sync", "time", "rt-multi-thread","macros"] } tokio-tungstenite = "0.15.0" tu 阅读全文
摘要:
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 阅读全文
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>2048 Game</title> </head> <style> body { font-family: Arial, sans-serif; display 阅读全文
摘要:
package main import ( "fmt" "time" ) func batchProcessor(ch <-chan string, batchSize int, flushInterval time.Duration) { var batch []string timer := t 阅读全文
摘要:
toml jsonwebtoken = "9" rs use serde::{Deserialize, Serialize}; use chrono::Utc; use jsonwebtoken::errors::ErrorKind; use jsonwebtoken::{decode, encod 阅读全文