From a28223f2e68a22ce67e576d98b21e7ba3ccd551e Mon Sep 17 00:00:00 2001 From: Filip Dulic Date: Tue, 13 Apr 2021 12:16:58 -0500 Subject: [PATCH] Add new jcli-lib crate to workspace This is the beginning step for refactoring the jcli-lib crate from the jcli binary crate. This is the starting commit for #3172 --- Cargo.lock | 4 ++++ Cargo.toml | 1 + jcli-lib/Cargo.toml | 14 ++++++++++++++ jcli-lib/src/lib.rs | 7 +++++++ 4 files changed, 26 insertions(+) create mode 100644 jcli-lib/Cargo.toml create mode 100644 jcli-lib/src/lib.rs diff --git a/Cargo.lock b/Cargo.lock index 60b8fd6661..7cef180b0f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1945,6 +1945,10 @@ dependencies = [ "versionisator", ] +[[package]] +name = "jcli-lib" +version = "0.11.1" + [[package]] name = "jormungandr" version = "0.11.1" diff --git a/Cargo.toml b/Cargo.toml index 4f74e2a3d5..295180d22f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,6 +3,7 @@ members = [ "jormungandr-lib", "jormungandr", "jcli", + "jcli-lib", "modules/settings", "modules/blockchain", "testing/jormungandr-testing-utils", diff --git a/jcli-lib/Cargo.toml b/jcli-lib/Cargo.toml new file mode 100644 index 0000000000..87868aefdc --- /dev/null +++ b/jcli-lib/Cargo.toml @@ -0,0 +1,14 @@ +[package] +name = "jcli-lib" +version = "0.11.1" +authors = [ "dev@iohk.io" ] +license = "MIT OR Apache-2.0" +repository = "https://github.com/input-output-hk/jormungandr" +homepage = "https://github.com/input-output-hk/jormungandr#README.md" +documentation = "https://github.com/input-output-hk/jormungandr#USAGE.md" +description = """ +Midgard Serpent +""" +edition = "2018" + +[dependencies] diff --git a/jcli-lib/src/lib.rs b/jcli-lib/src/lib.rs new file mode 100644 index 0000000000..31e1bb209f --- /dev/null +++ b/jcli-lib/src/lib.rs @@ -0,0 +1,7 @@ +#[cfg(test)] +mod tests { + #[test] + fn it_works() { + assert_eq!(2 + 2, 4); + } +}