-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
146 lines (118 loc) · 2.96 KB
/
Copy pathCargo.toml
File metadata and controls
146 lines (118 loc) · 2.96 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
[workspace]
members = [
"crates/tao-core",
"crates/tao-codec",
"crates/tao-format",
"crates/tao-filter",
"crates/tao-scale",
"crates/tao-resample",
"crates/tao-ffi",
"bins/tao-cli",
"bins/tao-probe",
"bins/tao-play",
]
[workspace.package]
version = "0.1.0"
edition = "2024"
license = "MIT OR Apache-2.0"
repository = "https://github.com/user/tao"
rust-version = "1.85"
[workspace.dependencies]
# 内部 crate 依赖
tao-core = { path = "crates/tao-core" }
tao-codec = { path = "crates/tao-codec" }
tao-format = { path = "crates/tao-format" }
tao-filter = { path = "crates/tao-filter" }
tao-scale = { path = "crates/tao-scale" }
tao-resample = { path = "crates/tao-resample" }
tao-ffi = { path = "crates/tao-ffi" }
# 错误处理
thiserror = "2"
# 日志
log = "0.4"
env_logger = "0.11"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt"] }
tracing-appender = "0.2"
# 错误处理
anyhow = "1"
# 时间处理
chrono = "0.4"
# 压缩
flate2 = "1"
# 异步运行时
tokio = { version = "1", features = ["rt-multi-thread", "time", "macros"] }
# 命令行参数
clap = { version = "4", features = ["derive"] }
# 序列化
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# 位操作
bitflags = "2"
# 编码处理
encoding_rs = "0.8"
# 字节处理
bytes = "1"
byteorder = "1"
smallvec = "1"
# 并行处理
rayon = "1"
# 基准测试
criterion = { version = "0.5", features = ["html_reports"] }
# HTTP 客户端
ureq = "3"
# 临时目录
tempfile = "3"
# MP3 参考解码器(仅测试)
symphonia = { version = "0.5", features = ["mp3"] }
[package]
name = "tao"
description = "纯 Rust 实现的多媒体处理框架, 对标 FFmpeg"
version.workspace = true
edition.workspace = true
license.workspace = true
rust-version.workspace = true
[lib]
name = "tao"
path = "src/lib.rs"
[dependencies]
tao-core.workspace = true
tao-codec.workspace = true
tao-format.workspace = true
tao-filter.workspace = true
tao-scale.workspace = true
tao-resample.workspace = true
# 日志相关
tracing.workspace = true
tracing-subscriber.workspace = true
tracing-appender.workspace = true
anyhow.workspace = true
chrono.workspace = true
flate2.workspace = true
tokio.workspace = true
serde.workspace = true
[dev-dependencies]
bytes.workspace = true
criterion.workspace = true
tempfile.workspace = true
symphonia.workspace = true
tao-format = { workspace = true, features = ["http"] }
env_logger.workspace = true
serde_json.workspace = true
[features]
default = ["http"]
http = ["tao-format/http"]
[[bench]]
name = "codec_bench"
harness = false
# dev 模式对核心 crate 启用完全优化, 避免播放器帧率过低
[profile.dev.package.tao-codec]
opt-level = 3
[profile.dev.package.tao-play]
opt-level = 3
[profile.dev.package.tao-resample]
opt-level = 3
# test 模式下 H264 对比主要耗时在解码器执行, 仅对核心解码 crate 提升优化等级.
[profile.test.package.tao-codec]
opt-level = 3
debug-assertions = false