mirror of
https://github.com/jht5945/rust_util.git
synced 2025-12-27 15:40:03 +08:00
feat: add use clap
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "rust_util"
|
||||
version = "0.6.25"
|
||||
version = "0.6.26"
|
||||
authors = ["Hatter Jiang <jht5945@gmail.com>"]
|
||||
edition = "2018"
|
||||
description = "Hatter's Rust Util"
|
||||
@@ -10,11 +10,13 @@ readme = "README.md"
|
||||
[features]
|
||||
default = [] #["serde", "serde_json"]
|
||||
# use_serde = ["serde", "serde_json"]
|
||||
use_clap = ["clap"]
|
||||
|
||||
[dependencies]
|
||||
libc = "0.2.65"
|
||||
term = "0.5.2"
|
||||
term_size = "0.3.1"
|
||||
lazy_static = "1.3.0"
|
||||
clap = { version = "2.0", optional = true }
|
||||
# serde = { version = "1.0", features = ["derive"], optional = true }
|
||||
# serde_json = { version = "1.0", optional = true }
|
||||
|
||||
@@ -21,6 +21,8 @@ pub mod util_time;
|
||||
pub mod util_net;
|
||||
pub mod util_term;
|
||||
pub mod util_git;
|
||||
// #[feature(use_clap)]
|
||||
pub mod util_clap;
|
||||
|
||||
/// iff!(condition, result_when_true, result_when_false)
|
||||
#[macro_export] macro_rules! iff {
|
||||
|
||||
Reference in New Issue
Block a user