Skip to content

Commit

Permalink
core and utils
Browse files Browse the repository at this point in the history
  • Loading branch information
kingwingfly committed Feb 7, 2024
1 parent 0940607 commit 3cd2177
Show file tree
Hide file tree
Showing 31 changed files with 50 additions and 50 deletions.
2 changes: 1 addition & 1 deletion fav/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use fav_core::Cli;
use fav_utils::Cli;
use tracing::Level;
use tracing_subscriber::{filter, prelude::*};

Expand Down
37 changes: 0 additions & 37 deletions fav_core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,40 +9,3 @@ repository.workspace = true
documentation.workspace = true

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
# CLI
clap = { version = "4.4", features = ["derive"]}
tabled = "0.15.0"
indicatif = { version = "0.17", features = ["tokio"] }
clap_complete = { version = "4" }
# Error
snafu = { version = "0.8" }
# Serde
serde = { version = "1", features = ["derive"] }
serde_json = { version = "1" }
# ProtoBuf
protobuf = { version = "3", features = ["with-bytes"] }
protobuf-json-mapping = { version = "3" }
# Net
reqwest = { version = "0.11", features = ["json", "cookies"] }
# Runtime
tokio = { version = "1", features = ["macros", "rt-multi-thread", "signal", "process"] }
# tracing
tracing = { version = "0.1" }
tracing-subscriber = { version = "0.3" }
# Tools
qrcode = { version = "0.13", default-features = false }
rand = "0.8.5"
base64 = "0.21.7"
tempfile = "3.9.0"
sanitize-filename = "0.5.0"
md5 = "0.7.0"
chrono = "0.4.33"

[build-dependencies]
protobuf-codegen = { version = "3" }

[features]
default = ["bili"]
bili = []
12 changes: 0 additions & 12 deletions fav_core/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,12 +0,0 @@
//! helper functions for the CLI
#![deny(missing_docs)]

mod api;
mod cli;
mod config;
mod daemon;
mod meta;
mod proto;

pub use cli::Cli;
37 changes: 37 additions & 0 deletions fav_utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,40 @@ repository.workspace = true
documentation.workspace = true

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
# CLI
clap = { version = "4.4", features = ["derive"]}
tabled = "0.15.0"
indicatif = { version = "0.17", features = ["tokio"] }
clap_complete = { version = "4" }
# Error
snafu = { version = "0.8" }
# Serde
serde = { version = "1", features = ["derive"] }
serde_json = { version = "1" }
# ProtoBuf
protobuf = { version = "3", features = ["with-bytes"] }
protobuf-json-mapping = { version = "3" }
# Net
reqwest = { version = "0.11", features = ["json", "cookies"] }
# Runtime
tokio = { version = "1", features = ["macros", "rt-multi-thread", "signal", "process"] }
# tracing
tracing = { version = "0.1" }
tracing-subscriber = { version = "0.3" }
# Tools
qrcode = { version = "0.13", default-features = false }
rand = "0.8.5"
base64 = "0.21.7"
tempfile = "3.9.0"
sanitize-filename = "0.5.0"
md5 = "0.7.0"
chrono = "0.4.33"

[build-dependencies]
protobuf-codegen = { version = "3" }

[features]
default = ["bili"]
bili = []
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 12 additions & 0 deletions fav_utils/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//! helper functions for the CLI
#![deny(missing_docs)]

mod api;
mod cli;
mod config;
mod daemon;
mod meta;
mod proto;

pub use cli::Cli;
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 3cd2177

Please sign in to comment.