-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
98 lines (83 loc) · 2.55 KB
/
Cargo.toml
File metadata and controls
98 lines (83 loc) · 2.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
[package]
name = "fishpi-rust"
version = "0.1.0"
edition = "2024"
authors = ["只有午安"]
description = "FishPi社区API的Rust库"
license = "MIT"
repository = "https://github.com/FishPiOffical/fishpi-rust"
documentation = "https://docs.rs/fishpi-rust"
readme = "README.md"
keywords = ["fishpi"]
build = "build.rs"
[lib]
name = "fishpi_rust"
path = "src/lib.rs"
doctest = false
# [[bin]]
# name = "fishpi-client"
# path = "fishpi-client/src/main.rs"
[[bin]]
name = "client"
path = "client/src/main.rs"
[dependencies]
reqwest = { version = "0.11", features = ["json", "stream", "rustls-tls"] }
tokio = { version = "1", features = ["full"] }
tokio-tungstenite = { version = "0.19", features = ["connect"] }
futures = "0.3"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
anyhow = "1.0"
log = "0.4"
url = "2.3"
regex = "1.10.2"
chrono = "0.4"
colored = "2.0"
async-trait = "0.1"
dotenv = "0.15"
rpassword = "7.3"
clap = { version = "4.4", features = ["derive"] }
tokio-util = "0.7"
futures-util = "0.3"
env_logger = "0.10"
dirs = "6.0"
md5 = "0.7"
lazy_static = "1.4"
rand = "0.9.1"
thiserror = "2.0.12"
webbrowser = "1.0"
html2text = "0.15.0"
rustyline = "16.0.0"
crossterm = "0.29.0"
color-eyre = "0.6.3"
ratatui = "0.29.0"
serde_repr = "0.1.12"
serde_path_to_error = "0.1.17"
lru = "0.12"
once_cell = "1.21.3"
scraper = "0.25.0"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
# 跨平台编译配置
# Linux GNU目标 - 静态链接
[target.x86_64-unknown-linux-gnu]
rustflags = ["-C", "target-feature=+crt-static"]
# Linux Musl目标 - 静态链接(更小的二进制文件)
[target.x86_64-unknown-linux-musl]
rustflags = ["-C", "target-feature=+crt-static"]
# Windows GNU目标 - 静态链接
[target.x86_64-pc-windows-gnu]
rustflags = ["-C", "target-feature=+crt-static"]
# Windows MSVC目标 - 静态链接
[target.x86_64-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]
# 平台特定的依赖配置
# Linux平台使用rustls(跨平台编译时)
[target.'cfg(target_os = "linux")'.dependencies]
reqwest = { version = "0.11", features = ["json", "stream", "rustls-tls-webpki-roots"], default-features = false }
tokio-tungstenite = { version = "0.19", features = ["rustls-tls-webpki-roots", "connect"], default-features = false }
# Windows平台使用native-tls(本地开发时)
[target.'cfg(target_os = "windows")'.dependencies]
reqwest = { version = "0.11", features = ["json", "stream", "native-tls-vendored"] }
tokio-tungstenite = { version = "0.19", features = ["native-tls-vendored", "connect"] }