-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
78 lines (68 loc) · 2.41 KB
/
Copy pathCargo.toml
File metadata and controls
78 lines (68 loc) · 2.41 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
[workspace]
members = [".", "tools"]
default-members = [".", "tools"]
[package]
name = "rusty_av2d"
authors = ["Mata Network <https://www.mata.network>", "Rav1d Developers", "Prossimo", "dav1d authors"]
version = "0.2.10"
edition = "2021"
rust-version = "1.79"
description = "Pure-Rust AV2 video decoder, no C/FFI. Byte-identical to the AVM reference decoder across a 57-clip conformance corpus."
license = "BSD-2-Clause"
repository = "https://github.com/Remade-With-Rust/rusty_av2d"
homepage = "https://github.com/Remade-With-Rust/rusty_av2d"
readme = "README.md"
keywords = ["av2", "video", "codec", "decoder", "avm"]
categories = ["multimedia::video", "multimedia"]
# No `exclude` needed: the tree is Rust. Every entry that used to live here
# (`*.c`, `*.h`, `meson*`, `retranspile.sh`, `NEWS.dav1d`, ...) existed only to keep
# the inherited dav1d C decoder out of the published package; that tree is gone.
[lib]
name = "rusty_av2d"
crate-type = ["staticlib", "rlib"]
[dependencies]
assert_matches = "1.5.0"
atomig = { version = "0.4.0", features = ["derive"] }
av-data = "0.4.2"
bitflags = "2.4.0"
cfg-if = "1.0.0"
libc = "0.2"
parking_lot = "0.12.2"
paste = "1.0.14"
raw-cpuid = "11.0.1"
static_assertions = "1.1.0"
strum = { version = "0.27", features = ["derive"] }
to_method = "1.1.0"
zerocopy = { version = "0.7.32", features = ["derive"] }
[build-dependencies]
[features]
default = ["bitdepth_8", "bitdepth_16", "capi"]
# The C ABI (`dav1d_*` symbols, inherited from the dav1d lineage). ON by default
# so the CLI and C consumers work. Rust consumers that link another decoder of
# the same lineage (e.g. rav1d) MUST disable it -- the symbol names collide at
# link time. The safe Rust API is unaffected either way.
capi = []
bitdepth_8 = []
bitdepth_16 = []
# Stage profiler (docs/plan.md Phase 0): cumulative per-stage timers + a report
# table. Zero cost when off (the default); diagnostics only, not for production.
profiling = []
[profile.dev]
panic = "abort"
[profile.opt-dev]
# The debug builds run tests very slowly so this profile keeps debug assertions
# while enabling basic optimizations. The profile is not suitable for debugging.
inherits = "dev"
opt-level = 1
[profile.release]
codegen-units = 1
panic = "abort"
lto = "fat"
[profile.release-with-debug]
inherits = "release"
debug = "line-tables-only"
[profile.checked-release]
# Close to a release build, but with all checks enabled.
inherits = "dev"
opt-level = 2
codegen-units = 16