-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
executable file
·74 lines (62 loc) · 1.98 KB
/
Copy pathCargo.toml
File metadata and controls
executable file
·74 lines (62 loc) · 1.98 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
cargo-features = [ "codegen-backend", "trim-paths" ]
# cargo-features = ["codegen-backend", "profile-rustflags", "trim-paths"]
# The above also needs profile.dev codegen-backend uncommented to use cranelift
[package]
name = "chapterize"
version = "0.1.0"
authors = [ "MrDwarf7", "Blake B. <github.com/MrDwarf7>" ]
edition = "2024"
description = "Apply YouTube-style chapters to a video with ffmpeg."
license-file = "LICENSE"
readme = "README.md"
build = "build.rs"
[package.metadata.winresource]
OriginalFilename = "chapterize.exe"
FileDescription = "Apply YouTube-style chapters to a video with ffmpeg."
LegalCopyright = "Copyright (c) Blake B. @github.com/MrDwarf7"
[target.'cfg(windows)'.build-dependencies]
winresource = "0.1.19"
[dependencies]
clap = { version = "4.5.20", features = [ "derive" ] }
env_logger = "0.11.5"
log = "0.4.22"
regex = "1.11.1"
thiserror = "1.0.65"
[dev-dependencies]
tempfile = "3.19.1"
# See `./.extras/.cargo_options.toml` for profile option notes.
[profile.dev]
opt-level = 1
codegen-units = 256
incremental = true
codegen-backend = "cranelift"
debug = "line-tables-only"
debug-assertions = true
overflow-checks = true
strip = "none"
panic = "abort"
lto = "off"
trim-paths = "none"
[profile.release]
opt-level = 3
codegen-units = 1
incremental = false
codegen-backend = "cranelift"
debug = "none"
debug-assertions = false
overflow-checks = false
strip = "symbols"
panic = "unwind"
lto = "off"
trim-paths = [ "diagnostics", "object" ]
[profile.dev.package."*"]
inherits = "release"
codegen-backend = "cranelift"
[profile.release.package."*"]
inherits = "release"
codegen-backend = "cranelift"
# Lint levels: 0 = forbid, 1 = deny, 2 = warn, 3 = allow
[lints.rust]
unsafe_code = { level = "forbid", priority = 0 }
[lints.clippy]
enum_glob_use = { level = "warn", priority = 2 }