mirror of
https://github.com/narrrl/proton-stream.git
synced 2026-12-03 20:01:50 +01:00
`pstr bench --requests` gives the bench its own telemetry sink and
prints, per phase, the API calls by route, the block downloads and the
SDK operations they belong to. Only the share holding the file is
opened, so the share-open count is that share's alone.
Routes keep their shape with ids replaced by `{id}`, and nothing else
from an event is stored, so the report holds no URL, name or token.
The SDK reports one event per logical call, so retries inside a call
are not counted; the report says so.
Moves proton-sdk and proton-drive-rs to 0.12.9, which reports the
public-link handshake to telemetry with fixed endpoint labels.
139 lines
6.3 KiB
TOML
139 lines
6.3 KiB
TOML
[workspace]
|
|
resolver = "2"
|
|
members = [
|
|
"crates/pstr-core",
|
|
"crates/pstr-stream",
|
|
"crates/pstr-meta",
|
|
"crates/pstr-player",
|
|
"crates/pstr-app",
|
|
"crates/pstr-cli",
|
|
"crates/pstr-android",
|
|
]
|
|
|
|
[workspace.package]
|
|
version = "2.5.1"
|
|
edition = "2024"
|
|
license = "MIT"
|
|
repository = "https://github.com/narrrl/proton-stream"
|
|
rust-version = "1.96"
|
|
authors = ["Nils Pukropp <contact@narl.io>"]
|
|
|
|
# Dependencies build optimized even in dev/test, for the same reason
|
|
# `proton-sdk-rs` does it: every CPU-bound thing this app does — rPGP block
|
|
# decryption, bcrypt, the S2K derivations — lives in those crates, and
|
|
# unoptimized rPGP is roughly two orders of magnitude slower. A debug build
|
|
# without this cannot keep up with playback at all. Workspace crates stay at
|
|
# `opt-level = 0` so incremental rebuilds and backtraces are unaffected.
|
|
[profile.dev.package."*"]
|
|
opt-level = 2
|
|
|
|
[workspace.dependencies]
|
|
proton-sdk = { version = "0.12.9" }
|
|
proton-drive-rs = { version = "0.12.9" }
|
|
|
|
# Internal crates.
|
|
pstr-core = { path = "crates/pstr-core" }
|
|
pstr-meta = { path = "crates/pstr-meta" }
|
|
pstr-stream = { path = "crates/pstr-stream" }
|
|
pstr-player = { path = "crates/pstr-player" }
|
|
|
|
tokio = { version = "1", features = ["rt-multi-thread", "macros", "sync", "fs", "io-util", "time"] }
|
|
futures = "0.3"
|
|
# The TLS features match `proton-sdk-rs`'s deliberately: cargo unifies features
|
|
# across the graph, and a second configuration here would link a second TLS
|
|
# stack into the same binary. `query` is the one addition — TMDB takes its
|
|
# search terms in the query string, and it is purely additive.
|
|
reqwest = { version = "0.13", default-features = false, features = ["json", "query", "rustls", "webpki-roots", "gzip"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
thiserror = "2"
|
|
anyhow = "1"
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
directories = "5"
|
|
# Local dates for the history page. Already in the tree through the SDK.
|
|
chrono = { version = "0.4", default-features = false, features = ["clock"] }
|
|
sha2 = "0.10"
|
|
# The id a watch-history file is named by. Already in the tree through the SDK.
|
|
getrandom = "0.3"
|
|
# The QR code a TV shows for adding a share from a phone (`pstr-core::handoff`):
|
|
# the module matrix only, which the front end draws.
|
|
qrcode = { version = "0.15", default-features = false }
|
|
# The payload of a `pstr://` invite (`pstr-core::invite`). Already in the tree
|
|
# through the SDK.
|
|
base64 = "0.22"
|
|
# `bundled` so a Windows build needs no system SQLite.
|
|
# The suite links one bundled SQLite (cargo allows one `links = "sqlite3"` per
|
|
# graph), so this follows proton-rs.
|
|
rusqlite = { version = "0.41", features = ["bundled"] }
|
|
# The share URL fragment and the custom password are both secrets; they go in
|
|
# the OS credential store (Secret Service on Linux, Credential Manager on
|
|
# Windows, the Keychain on macOS), never in the config file next to them.
|
|
# Shared with proton-drive-linux and Proton Gallery, and it reads the entries
|
|
# `keyring` 3 wrote, so nobody is signed out by the move.
|
|
proton-auth-rs = "0.1.1"
|
|
proton-base-rs = "0.1"
|
|
proton-media-rs = "0.2.0"
|
|
proton-drive-tree-rs = "0.1.0"
|
|
clap = { version = "4", features = ["derive"] }
|
|
# The UI. `glow` rather than `wgpu` because step two of the player hands mpv an
|
|
# `MPV_RENDER_API_TYPE_OPENGL` context, and that has to be the same context
|
|
# eframe is drawing into. `accesskit` hands the widget tree to the platform's
|
|
# screen reader (AT-SPI, UI Automation, NSAccessibility).
|
|
eframe = { version = "0.35", default-features = false, features = [
|
|
"accesskit",
|
|
"default_fonts",
|
|
"glow",
|
|
"wayland",
|
|
"x11",
|
|
] }
|
|
egui = "0.35"
|
|
# The icons on buttons. Glyphs like ⏭ and 🔊 come out of whichever fallback
|
|
# font has them, at its own size and baseline; an icon font is one set.
|
|
egui-phosphor = { version = "0.13", default-features = false, features = ["regular"] }
|
|
# Tests only: reads the bundled fonts' character maps. The version epaint
|
|
# already builds, so it costs no extra compile.
|
|
skrifa = { version = "0.42", default-features = false, features = ["std"] }
|
|
# Poster thumbnails only: Proton renders them as JPEG, and a decoder that also
|
|
# pulls in every exotic format is weight this app has no use for.
|
|
image = { version = "0.25", default-features = false, features = ["jpeg", "png", "webp"] }
|
|
# Non-poisoning, deliberately: a panicking UI frame must not wedge the catalog
|
|
# behind a poisoned lock for the rest of the session. Same reason
|
|
# `proton-drive-linux` uses it.
|
|
parking_lot = "0.12"
|
|
# Media keys and the desktop's media widget: MPRIS on Linux, SMTC on Windows.
|
|
# `dbus` rather than `zbus` because the keyring's Secret Service store already
|
|
# links libdbus, so this adds no second D-Bus stack.
|
|
souvlaki = { version = "0.8", default-features = false, features = ["use_dbus"] }
|
|
# Holding the screensaver off while a film plays. mpv does that for a window of
|
|
# its own, but the picture here is drawn into ours, and mpv has no window to
|
|
# hold it for.
|
|
dbus = "0.9"
|
|
windows-sys = "0.61"
|
|
# Toasts on Windows. Linux notifications go over the `dbus` above.
|
|
tauri-winrt-notification = "0.8"
|
|
# The exe's own icon resource, which is what Explorer and a taskbar pin draw.
|
|
embed-resource = "3"
|
|
# Proton's CAPTCHA page, which reports success by posting a message to its
|
|
# host, so it needs a webview this app controls. Run in a child process of its
|
|
# own (`pstr-app::verify`): tao and eframe's winit cannot share an event loop.
|
|
# WebKitGTK on Linux, WebView2 on Windows, WKWebView on macOS.
|
|
wry = { version = "0.57", default-features = false, features = ["os-webview"] }
|
|
tao = { version = "0.37", default-features = false, features = ["rwh_06"] }
|
|
rpassword = "7"
|
|
libloading = "0.8"
|
|
# `async fn` in traits is stable at MSRV 1.96 but is not dyn-compatible, and the
|
|
# stream layer needs a `dyn` block source so its cache, ring and read-ahead can
|
|
# be tested against a fake without a network or an account.
|
|
async-trait = "0.1"
|
|
uniffi = "0.32"
|
|
|
|
# The SDK builds against the registry — 0.4.0 is published. To test an
|
|
# unpublished `../proton-sdk-rs` change against this app, add locally and do
|
|
# **not** commit it (CI has no sibling checkout, and the build scripts refuse to
|
|
# run with a patch pointing at a missing path):
|
|
#
|
|
# [patch.crates-io]
|
|
# proton-sdk = { path = "../proton-sdk-rs/crates/proton-sdk" }
|
|
# proton-drive-rs = { path = "../proton-sdk-rs/crates/proton-drive-rs" }
|