-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
130 lines (109 loc) · 2.78 KB
/
Copy pathCargo.toml
File metadata and controls
130 lines (109 loc) · 2.78 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
[package]
name = "rust-yt-uploader"
version = "0.2.17"
edition = "2024"
rust-version = "1.89"
authors = ["Yang Ye <yy@runchee.com>"]
description = "High-performance YouTube video uploader in Rust with OAuth 2.0, concurrent uploads, and comprehensive validation"
license = "MIT"
repository = "https://github.com/example-org/rust-yt-uploader"
keywords = ["youtube", "upload", "oauth", "async", "google"]
categories = [
"api-bindings",
"multimedia::video",
"authentication",
"web-programming::http-client",
]
exclude = [
"client_secret.json",
"youtube-oauth2.json",
"example-batch-config.yaml",
"example-individual-config.yaml",
]
[lib]
name = "rust_yt_uploader"
[[bin]]
name = "yt-upload"
path = "src/bin/yt_upload.rs"
[[bin]]
name = "yt-list"
path = "src/bin/yt_list.rs"
[[bin]]
name = "yt-update-lang"
path = "src/bin/yt_update_lang.rs"
[[bin]]
name = "yt-update-date"
path = "src/bin/yt_update_date.rs"
[[bin]]
name = "yt-upload-subtitle"
path = "src/bin/yt_upload_subtitle.rs"
[[bin]]
name = "yt-append-description"
path = "src/bin/yt_append_description.rs"
[[bin]]
name = "yt-add-tags"
path = "src/bin/yt_add_tags.rs"
[[bin]]
name = "yt-add-pin-comment"
path = "src/bin/yt_add_pin_comment.rs"
[features]
default = []
# default = ["use-yup-oauth2"]
use-yup-oauth2 = ["yup-oauth2"]
[dependencies]
# Async runtime - optimized for I/O and process management
tokio = { version = "1.50.0", features = [
"macros",
"rt-multi-thread",
"time",
"sync",
"fs",
"process",
] }
# HTTP client - native-tls uses system OpenSSL, eliminating the 4.4s aws-lc-sys C build.
# http2 is omitted: YouTube API works fine over HTTP/1.1 and h2 also pulls aws-lc-rs.
# charset + system-proxy were previously included via default-features; kept explicitly.
reqwest = { version = "0.13.2", default-features = false, features = [
"json",
"multipart",
"stream",
"form",
"native-tls",
"charset",
"system-proxy",
] }
yup-oauth2 = { version = "12.1.2", optional = true }
# CLI
clap = { version = "4.6.0", features = ["derive"] }
# Serialization
serde = { version = "1.0.228", features = ["derive"] }
serde_yaml_ng = "0.10.0"
serde_json = "1.0.149"
# Error handling
anyhow = "1.0.102"
# Logging
tracing = "0.1.44"
tracing-subscriber = { version = "0.3.23", features = ["env-filter"] }
# Validation
validator = { version = "0.20.0", features = ["derive"] }
regex = "1.12.3"
# Utilities
rand = "0.10.0"
futures = "0.3.32"
url = "2.5.8"
shellexpand = "3.1.2"
sha2 = "0.11.0"
base64 = "0.22.1"
urlencoding = "2.1.3"
open = "5.3.3"
tiny_http = "0.12.0"
tempfile = "3.27.0"
# File handling
mime = "0.3.17"
mime_guess = "2.0.5"
serde-jsonlines = "0.7.0"
tokio-util = { version = "0.7.18", features = ["io"] }
# Progress bars
indicatif = "0.18.4"
[dev-dependencies]
tempfile = "3.27.0"