The rustls crypto provider was not installed for `qbzd`, which caused the process to panic: > thread 'tokio-rt-worker' (15737) panicked at [...]/rustls-0.23.37/src/crypto/mod.rs:249:14: > > Could not automatically determine the process-level CryptoProvider from > Rustls crate features. > Call CryptoProvider::install_default() before this point to select a > provider manually, or make sure exactly one of the 'aws-lc-rs' and 'ring' > features is enabled. > See the documentation of the CryptoProvider type for more information. The function `ensure_crypto_provider()` was defined in the `qbz-cast` crate which is obviously not a dependency of `qbzd`. This commit moves `ensure_crypto_provider()` to `qbz-app`, calls it from `qbzd` and updates `qbz` accordingly.
36 lines
657 B
TOML
36 lines
657 B
TOML
[package]
|
|
name = "qbz-cast"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "Casting support for QBZ - Chromecast, DLNA"
|
|
|
|
[dependencies]
|
|
# Chromecast
|
|
rust_cast = "0.21"
|
|
|
|
# mDNS discovery
|
|
mdns-sd = "0.11"
|
|
|
|
# Local HTTP server for media streaming
|
|
tiny_http = "0.12"
|
|
|
|
# DLNA/UPnP
|
|
rupnp = { version = "3", features = ["full_device_spec"] }
|
|
futures-util = "0.3"
|
|
|
|
# Serialization
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
|
|
# Error handling
|
|
thiserror = "2"
|
|
|
|
# Logging
|
|
log = "0.4"
|
|
|
|
# CSPRNG for cast media path tokens (not RandomState hash)
|
|
getrandom = "0.4"
|
|
|
|
# Async runtime (for DLNA)
|
|
tokio = { version = "1", features = ["rt", "sync"] }
|