[ English | 简体中文 ]
bbdown-core
bbdown-core is the reusable Rust library package behind BBDown Rust. Rust code imports it as
bbdown_core. It resolves Bilibili and Bilibili intl inputs into typed metadata, download plans,
media downloads, subtitles, danmaku sidecars, QR login credentials, download archive preflight data,
and restricted-area proxy diagnostics.
Install with cargo add bbdown-core, then import with bbdown_core.
The crate is still preparing for its first crates.io release. This pre-release branch intentionally
hardens public structs before publishing: embedding projects should prefer constructor and
builder-style APIs such as ClientConfig::default().with_*(), EndpointConfig::default().with_*(),
RestrictedAreaConfig::default().with_*(), DownloadOptions::new(...).with_*(),
RetryPolicy::new(...), and StreamSelection::new(...) instead of struct literals for
configuration values that may grow between minor releases. Public plan output containers are
consumed data surfaces and may be marked non-exhaustive.
Example
use ;
use Duration;
async
See the repository embedding guide for restricted-area proxy, endpoint override, credential, download archive, and download execution examples: English / 简体中文.
The CLI package is distributed through GitHub release archives. The crates.io dry-run target for this
workspace is the bbdown-core library package.