From 82277ca7513eff82365ed54fe9836aae5bd45fe1 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Thu, 10 Jul 2025 16:36:42 +0200 Subject: refactor(crates/yt_dlp): Port to `pyo3` again Rustpyton is slower, does not implement everything correctly and worst of all, contains code produced by LLM's. Using the freethreaded mode of pyo3 also works nicely around the GIL, and enables parallel execution. --- crates/yt_dlp/examples/main.rs | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 crates/yt_dlp/examples/main.rs (limited to 'crates/yt_dlp/examples/main.rs') diff --git a/crates/yt_dlp/examples/main.rs b/crates/yt_dlp/examples/main.rs new file mode 100644 index 0000000..b3a2dd5 --- /dev/null +++ b/crates/yt_dlp/examples/main.rs @@ -0,0 +1,5 @@ +fn main() { + let yt_dlp = yt_dlp::options::YoutubeDLOptions::new().build().unwrap(); + + dbg!(yt_dlp.version().unwrap()); +} -- cgit 1.4.1