Skip to content

Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.

4.2 KB
Raw Blame
[workspace]
members = [
    ".",
    "libreget-core",
    "libreget-plugin-sdk",
    "libreget-cli",
    "plugins/convert",
    "plugins/telegram",
    "plugins/courses",
    "plugins/grammers-session",
]
resolver = "2"

[package]
name = "libreget"
version = "1.0.0"
description = "LibreGet — Universal Downloader & Media Player"
authors = ["OpenSelena"]
edition = "2021"

[lib]
name = "libreget_lib"
crate-type = ["staticlib", "cdylib", "rlib"]

[build-dependencies]
tauri-build = { version = "2", features = [] }

[features]
default = []

[dependencies]
tauri = { version = "2", features = ["protocol-asset", "tray-icon", "macos-private-api"] }
tauri-plugin-shell = "2"
tauri-plugin-store = "2"
tauri-plugin-dialog = "2.8"
tauri-plugin-notification = "2"
tauri-plugin-fs = "2"
tokio = { version = "1", features = ["full"] }
reqwest = { version = "0.12", default-features = false, features = ["json", "cookies", "stream", "http2", "gzip", "brotli", "deflate", "rustls-tls", "socks"] }
futures = "0.3"
async-trait = "0.1"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
regex = "1"
m3u8-rs = "6"
aes = "0.8"
cbc = "0.1"
anyhow = "1"
tracing = "0.1"
tracing-subscriber = "0.3"
uuid = { version = "1", features = ["v4"] }
axum = { version = "0.8", default-features = false, features = ["http1", "json", "tokio"] }
tower-http = { version = "0.7", features = ["cors"] }
constant_time_eq = "0.6"
socket2 = "0.6"
chrono = { version = "0.4", features = ["serde"] }
dirs = "6"
sanitize-filename = "0.6"
unicode-normalization = "0.1"
tokio-util = { version = "0.7", features = ["io", "rt"] }
url = "2"
urlencoding = "2"
rand = "0.10.0"
rusqlite = { version = "0.32", features = ["bundled"] }
base64 = "0.22.1"
filetime = "0.2.27"
zip = { version = "8", default-features = false, features = ["deflate"] }
tar = "0.4"
xz2 = { version = "0.1", features = ["static"] }
sha2 = "0.10"
md-5 = "0.10"
murmur3 = "0.5"
hex = "0.4"
thiserror = "1"
hmac = "0.12"
qrcode = { version = "0.14", default-features = false, features = ["svg"] }
open = "5"
libreget-core = { path = "libreget-core", features = ["desktop"] }
libreget-plugin-sdk = { path = "libreget-plugin-sdk" }
libreget-plugin-convert = { path = "plugins/convert" }
libreget-plugin-telegram = { path = "plugins/telegram" }
libreget-plugin-courses = { path = "plugins/courses" }
libloading = "0.8"
which = "8"
librqbit = "8.1.1"
keepawake = "0.5"
discord-rich-presence = "0.2"
once_cell = "1"
tokio-tungstenite = { version = "0.30.0", features = ["native-tls"] }
native-tls = "0.2.18"
fs4 = "1"

[target.'cfg(windows)'.dependencies]
keyring = { version = "3", features = ["windows-native"] }
webview2-com = "0.39"
windows = { version = "0.62", features = ["Win32_Foundation", "Win32_Media_Audio", "Win32_System_Com", "Win32_System_Com_StructuredStorage", "Win32_System_Variant", "Win32_UI_WindowsAndMessaging"] }

# Reading WKWebView's cookie store directly — document.cookie cannot see
# HttpOnly cookies, which is the whole point of the auth webview (#287).
# Versions track what wry already resolves, so this adds no new build cost.
[target.'cfg(target_os = "macos")'.dependencies]
keyring = { version = "3", features = ["apple-native"] }
objc2 = "0.6"
objc2-foundation = { version = "0.3", features = ["NSHTTPCookie", "NSArray", "NSString"] }
objc2-web-kit = { version = "0.3", features = ["WKWebView", "WKWebViewConfiguration", "WKWebsiteDataStore", "WKHTTPCookieStore"] }
block2 = "0.6"

# Same idea for WebKitGTK (#288). Pinned to the exact version wry resolves so
# it is the same compiled crate, not a second copy.
[target.'cfg(target_os = "linux")'.dependencies]
webkit2gtk = { version = "=2.0.2", features = ["v2_38"] }

[target.'cfg(any(target_os = "macos", windows, target_os = "linux"))'.dependencies]
tauri-plugin-process = "2.4"
tauri-plugin-updater = "2.14.1"
tauri-plugin-global-shortcut = "2"
tauri-plugin-clipboard-manager = "2.5"
tauri-plugin-single-instance = "2"
tauri-plugin-deep-link = "2"
tauri-plugin-autostart = "2"

[profile.dev]
debug = 0
codegen-units = 256
incremental = true

[profile.dev.package."*"]
debug = false
opt-level = 1

[profile.release]
lto = "thin"
codegen-units = 16
strip = true

[patch.crates-io]
grammers-session = { path = "plugins/grammers-session" }