Skip to content

Commit

Permalink
Add optional feature readline
Browse files Browse the repository at this point in the history
  • Loading branch information
Fanda Vacek committed Jul 28, 2024
1 parent 9ca06fd commit 173ce82
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,21 @@ name = "shvcall"
version = "3.0.0"
edition = "2021"

[features]
readline = ["dep:crossterm", "dep:rustyline-async"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
simple_logger = { git = "https://github.com/fvacek/rust-simple_logger.git", branch = "main", features = ["stderr"] }
shvproto = { git = "https://github.com/silicon-heaven/libshvproto-rs.git", branch = "master" }
shvrpc = { git = "https://github.com/silicon-heaven/libshvrpc-rs.git", branch = "master" }
#shvrpc = { path = "../libshvrpc-rs" }

futures = "0.3.29"
async-std = { version = "1.12.0", features = ["attributes"] }
log = "0.4.20"
clap = { version = "4.4.12", features = ["derive"] }
rustyline-async = { version = "0.4.1" }
crossterm = { version = "0.27.0" }
rustyline-async = { version = "0.4.1", optional = true }
crossterm = { version = "0.27.0", optional = true }
url = "2.4.1"


6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ pub(crate) fn main() -> Result {
}
logger.init().unwrap();

log::info!("=====================================================");
log::info!("{} starting", std::module_path!());
log::info!("=====================================================");
info!("=====================================================");
info!("{} starting", std::module_path!());
info!("=====================================================");

// let rpc_timeout = Duration::from_millis(DEFAULT_RPC_TIMEOUT_MSEC);
let url = Url::parse(&opts.url)?;
Expand Down

0 comments on commit 173ce82

Please sign in to comment.