Update Rust version: fix console window, add API test, update README
This commit is contained in:
@@ -4,10 +4,11 @@ version = "0.1.0"
|
||||
edition = "2021"
|
||||
authors = ["Guba Developer"]
|
||||
description = "股吧人气指示器 - 基于Rust的情感分析工具"
|
||||
build = "build.rs"
|
||||
|
||||
[dependencies]
|
||||
tokio = { version = "1", features = ["full"] }
|
||||
reqwest = { version = "0.12", features = ["json"] }
|
||||
reqwest = { version = "0.12", features = ["json", "blocking"] }
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
rusqlite = { version = "0.32", features = ["bundled"] }
|
||||
@@ -32,6 +33,7 @@ default-features = false
|
||||
features = ["default", "glow"]
|
||||
|
||||
[build-dependencies]
|
||||
winres = "0.1"
|
||||
|
||||
[features]
|
||||
default = []
|
||||
@@ -40,3 +42,11 @@ default = []
|
||||
lto = true
|
||||
opt-level = "z"
|
||||
strip = true
|
||||
|
||||
# 链接标志设置
|
||||
[target.x86_64-pc-windows-gnu]
|
||||
rustflags = ["-C", "link-arg=-mwindows"]
|
||||
|
||||
[[bin]]
|
||||
name = "guba"
|
||||
path = "src/main.rs"
|
||||
|
||||
Reference in New Issue
Block a user