From 69145b4deed4fe512239a9f88e6af69d3b8c0309 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 13 Jun 2025 20:54:49 +0200 Subject: 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. --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Cargo.toml') 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" -- cgit 1.4.1