Desktop: run HTTP API, show version
This commit is contained in:
parent
3a69f04782
commit
2d43f41664
6 changed files with 71 additions and 14 deletions
|
|
@ -53,3 +53,8 @@ pub use clone_to_owned::CloneToOwned;
|
|||
pub use librqbit_core::magnet::*;
|
||||
pub use librqbit_core::peer_id::*;
|
||||
pub use librqbit_core::torrent_metainfo::*;
|
||||
|
||||
/// The cargo version of librqbit.
|
||||
pub fn version() -> &'static str {
|
||||
env!("CARGO_PKG_VERSION")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -178,7 +178,7 @@ enum SubCommand {
|
|||
Download(DownloadOpts),
|
||||
}
|
||||
|
||||
// Iint logging and make a channel to send new RUST_LOG values to.
|
||||
// Init logging and make a channel to send new RUST_LOG values to.
|
||||
fn init_logging(opts: &Opts) -> tokio::sync::mpsc::UnboundedSender<String> {
|
||||
let default_rust_log = match opts.log_level.as_ref() {
|
||||
Some(level) => match level {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue