libtorrent icon indicating copy to clipboard operation
libtorrent copied to clipboard

Use libtorrent with rust

Open pierrbt opened this issue 1 year ago • 4 comments

Is it possible to interface libtorrent with a rust application made with Tauri ?

I don't know if there is already working bindings with the source or binary, and if so can you explane me how ?

Else if someone knows if there is another way I can easily download torrents in Rust ?

pierrbt avatar Jul 10 '23 17:07 pierrbt

https://www.rangakrish.com/index.php/2022/05/04/using-dll-functions-in-rust/ https://users.rust-lang.org/t/best-way-to-access-dll-functions-in-rust/14548/5 https://www.reddit.com/r/rust/comments/cc6tbx/loading_dlls_in_rust/

ukoz avatar Jul 10 '23 22:07 ukoz

Thank you for your answer @ukoz , but I fear this will be a bit hard to make, because of the numerous struct types, the functions, any idea if a rust binding exists, or if there is an easier way ?

pierrbt avatar Jul 12 '23 23:07 pierrbt

@arvidn Do you plan to make an official Rust binding of the library ?

pierrbt avatar Jul 12 '23 23:07 pierrbt

For the record, this was answered here already.

JonasVautherin avatar Feb 05 '24 21:02 JonasVautherin