arvidn / libtorrent

an efficient feature complete C++ bittorrent implementation
http://libtorrent.org
Other
5.1k stars 984 forks source link

Use libtorrent with rust #7471

Open pierrbt opened 12 months ago

pierrbt commented 12 months ago

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 ?

ukoz commented 12 months ago

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/

pierrbt commented 12 months ago

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 commented 12 months ago

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

JonasVautherin commented 5 months ago

For the record, this was answered here already.