about summary refs log tree commit diff stats
path: root/Cargo.toml
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-06-13 20:54:49 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-06-13 20:56:40 +0200
commit69145b4deed4fe512239a9f88e6af69d3b8c0309 (patch)
tree7643edd350c1cec75f91e0982ffd3c840f8661fb /Cargo.toml
parentbuild(treewide): Update (diff)
downloadyt-69145b4deed4fe512239a9f88e6af69d3b8c0309.zip
feat({yt_dlp,yt}): Migrate from pyo3 to rustpython
That allows us to avoid cpython's GIL and gives us full ability to
leverage async/concurrent code to speed up python operations.

I have also taken the opportunity to change the `InfoJson` struct to an
untyped json value, as that is what it actually is.
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml4
1 files changed, 4 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 403c8f1..222ef7e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -59,6 +59,10 @@ codegen-units = 1
 panic = "abort"
 split-debuginfo = "off"
 
+[profile.dev]
+# Otherwise, yt_dlp is just too slow
+opt-level = 2
+
 [workspace.lints.rust]
 # rustc lint groups https://doc.rust-lang.org/rustc/lints/groups.html
 warnings = "warn"