summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.cargo/config.toml4
-rw-r--r--Cargo.toml4
-rw-r--r--src/bin/jv.rs2
-rw-r--r--src/bin/jvn.rs10
-rw-r--r--src/bin/jvn_comp.rs2
-rw-r--r--src/bin/jvv.rs2
6 files changed, 16 insertions, 8 deletions
diff --git a/.cargo/config.toml b/.cargo/config.toml
index 40260ca..a2dc0e8 100644
--- a/.cargo/config.toml
+++ b/.cargo/config.toml
@@ -13,6 +13,10 @@ binaries = [
"jvn_comp",
"jvn_comp.exe",
+ # Dynamic Lib
+ "libjvcli.so",
+ "libjvcli.dll",
+
# The legacy command line
"jv",
"jv.exe",
diff --git a/Cargo.toml b/Cargo.toml
index 6a41f1a..5c4c07d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -5,6 +5,10 @@ build = "build.rs"
authors = ["JustEnoughVCS Team"]
homepage = "https://github.com/JustEnoughVCS/CommandLine/"
+[lib]
+name = "jvcli"
+crate-type = ["cdylib", "rlib"]
+
[workspace]
members = [
"gen",
diff --git a/src/bin/jv.rs b/src/bin/jv.rs
index 0df6b32..27601e6 100644
--- a/src/bin/jv.rs
+++ b/src/bin/jv.rs
@@ -121,7 +121,7 @@ use cli_utils::legacy::{
push_version, socket_addr_helper,
};
use just_enough_vcs::utils::tcp_connection::error::TcpTargetError;
-use just_enough_vcs_cli::{
+use jvcli::{
data::{
compile_info::CompileInfo,
ipaddress_history::{get_recent_ip_address, insert_recent_ip_address},
diff --git a/src/bin/jvn.rs b/src/bin/jvn.rs
index f35e3f8..48b90c5 100644
--- a/src/bin/jvn.rs
+++ b/src/bin/jvn.rs
@@ -5,7 +5,11 @@ use std::{
};
use cli_utils::legacy::{display::md, env::current_locales, levenshtein_distance};
-use just_enough_vcs_cli::{
+use just_progress::{
+ progress,
+ renderer::{ProgressSimpleRenderer, RendererTheme},
+};
+use jvcli::{
special_argument, special_flag,
systems::{
cmd::{
@@ -21,10 +25,6 @@ use just_enough_vcs_cli::{
},
},
};
-use just_progress::{
- progress,
- renderer::{ProgressSimpleRenderer, RendererTheme},
-};
use log::{LevelFilter, error, info, trace, warn};
use rust_i18n::{set_locale, t};
use tokio::io::{self, AsyncReadExt, AsyncWriteExt};
diff --git a/src/bin/jvn_comp.rs b/src/bin/jvn_comp.rs
index 463fdd6..ea9aaa8 100644
--- a/src/bin/jvn_comp.rs
+++ b/src/bin/jvn_comp.rs
@@ -2,7 +2,7 @@ use std::{fs::OpenOptions, process::exit};
use clap::Parser;
use env_logger::Target;
-use just_enough_vcs_cli::systems::{
+use jvcli::systems::{
cmd::_commands::jv_cmd_nodes,
comp::{
_comps::{jv_cmd_comp_nodes, match_comp},
diff --git a/src/bin/jvv.rs b/src/bin/jvv.rs
index 885f3e0..4872679 100644
--- a/src/bin/jvv.rs
+++ b/src/bin/jvv.rs
@@ -40,8 +40,8 @@ use just_enough_vcs::{
},
utils::cfg_file::config::ConfigFile,
};
-use just_enough_vcs_cli::data::compile_info::CompileInfo;
use just_fmt::pascal_case;
+use jvcli::data::compile_info::CompileInfo;
use log::{error, info};
use rust_i18n::{set_locale, t};
use tokio::fs::{self};