From f78257a1fc13c846f86791b1c7ec0bb1c83f4342 Mon Sep 17 00:00:00 2001 From: "programmer@kl.netlib.re" Date: Mon, 24 Oct 2022 17:27:48 +0200 Subject: [PATCH] make library --- Cargo.toml | 8 ++++++++ src/lib.rs | 9 +++++++++ 2 files changed, 17 insertions(+) create mode 100644 src/lib.rs diff --git a/Cargo.toml b/Cargo.toml index 251adfa..479bbaf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,6 +3,14 @@ name = "qbt" version = "0.1.0" edition = "2021" +[lib] +name = "qbt" +path = "src/lib.rs" + +[[bin]] +name = "qbt" +path = "src/main.rs" + # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..73cb595 --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,9 @@ +pub mod action; +pub mod api; +pub mod config; +pub use config::Config; +pub mod cli; +pub use cli::Cli; +pub mod error; +pub use crate::error::{Error, ConfigSnafu as ConfigError}; +pub mod utils;