acick_dropbox/
lib.rs

1#![warn(clippy::all)]
2#![cfg_attr(coverage, feature(no_coverage))]
3
4mod authorizer;
5mod dropbox;
6#[cfg_attr(coverage, no_coverage)]
7mod hyper_client;
8
9use acick_util::abs_path;
10use acick_util::web;
11
12pub use dropbox_sdk::files::FileMetadata;
13
14pub use authorizer::{DbxAuthorizer, Token};
15pub use dropbox::Dropbox;
16
17pub type Error = anyhow::Error;
18pub type Result<T> = anyhow::Result<T>;
19
20fn convert_dbx_err(err: dropbox_sdk::Error) -> Error {
21    Error::msg(err.to_string())
22}