diff --git a/Cargo.lock b/Cargo.lock index cbc9851..1385319 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -719,7 +719,7 @@ dependencies = [ [[package]] name = "iop-morpheus-core" -version = "0.0.1" +version = "0.0.2" dependencies = [ "android_logger 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", "byteorder 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)", @@ -742,12 +742,12 @@ dependencies = [ [[package]] name = "iop-morpheus-core-ffi" -version = "0.0.1" +version = "0.0.2" dependencies = [ "android_logger 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", "failure 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", "iop-keyvault 0.0.2 (registry+https://github.com/rust-lang/crates.io-index)", - "iop-morpheus-core 0.0.1", + "iop-morpheus-core 0.0.2", "jni 0.17.0 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 1.0.56 (registry+https://github.com/rust-lang/crates.io-index)", @@ -756,12 +756,12 @@ dependencies = [ [[package]] name = "iop-morpheus-core-wasm" -version = "0.0.1" +version = "0.0.2" dependencies = [ "failure 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", "iop-keyvault 0.0.2 (registry+https://github.com/rust-lang/crates.io-index)", "iop-keyvault-wasm 0.0.2 (registry+https://github.com/rust-lang/crates.io-index)", - "iop-morpheus-core 0.0.1", + "iop-morpheus-core 0.0.2", "js-sys 0.3.42 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.114 (registry+https://github.com/rust-lang/crates.io-index)", @@ -772,7 +772,7 @@ dependencies = [ [[package]] name = "iop-morpheus-sdk" -version = "0.0.1" +version = "0.0.2" dependencies = [ "android_logger 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)", "async-trait 0.1.36 (registry+https://github.com/rust-lang/crates.io-index)", @@ -780,7 +780,7 @@ dependencies = [ "futures 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", "hyper 0.13.7 (registry+https://github.com/rust-lang/crates.io-index)", "iop-keyvault 0.0.2 (registry+https://github.com/rust-lang/crates.io-index)", - "iop-morpheus-core 0.0.1", + "iop-morpheus-core 0.0.2", "jni 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)", "multihash 0.11.2 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/Cargo.toml b/Cargo.toml index 298d4bf..ee971dd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,9 +6,15 @@ members = [ "morpheus-sdk", ] -# [patch.crates-io] +# Experiment for optimizing WASM and FFI binary sizes +[profile.release] +lto = true +opt-level = 's' + +[patch.crates-io] # iop-keyvault = { path="../keyvault-rs/keyvault" } # iop-keyvault-wasm = { path="../keyvault-rs/keyvault-wasm" } +iop-morpheus-core = { path="morpheus-core" } # [patch.crates-io] # iop-keyvault = { git="https://github.com/Internet-of-People/keyvault-rust", branch="develop" } diff --git a/morpheus-core-ffi/Cargo.toml b/morpheus-core-ffi/Cargo.toml index 198106c..8be9f2f 100644 --- a/morpheus-core-ffi/Cargo.toml +++ b/morpheus-core-ffi/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iop-morpheus-core-ffi" -version = "0.0.1" +version = "0.0.2" authors = ["IoP Ventures LLC ", "Rache Bartmoss ", "wigy "] edition = "2018" @@ -13,7 +13,7 @@ crate-type = ["rlib", "cdylib"] [dependencies] failure = "*" iop-keyvault = "0.0.2" -iop-morpheus-core = { path = "../morpheus-core" } +iop-morpheus-core = "0.0.2" log = "*" serde_json = { version = "*", features = ["preserve_order"] } serde_repr = "*" diff --git a/morpheus-core-wasm/Cargo.toml b/morpheus-core-wasm/Cargo.toml index b24c618..3ed5860 100644 --- a/morpheus-core-wasm/Cargo.toml +++ b/morpheus-core-wasm/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iop-morpheus-core-wasm" -version = "0.0.1" +version = "0.0.2" authors = ["IoP Ventures LLC ", "Rache Bartmoss ", "wigy "] edition = "2018" @@ -13,16 +13,10 @@ crate-type = ["cdylib", "rlib"] failure = "*" iop-keyvault = "0.0.2" iop-keyvault-wasm = "0.0.2" -iop-morpheus-core = { path = "../morpheus-core" } +iop-morpheus-core = "0.0.2" js-sys = "*" log = "*" serde = "*" serde_json = "*" wasm-bindgen = { version = "*", features = ["serde-serialize"] } wasm-bindgen-futures = "*" - - -# Further options to experiment with for optimizing Wasm binary sizes -#[profile.release] -#lto = true -#opt-level = 's' diff --git a/morpheus-core/Cargo.toml b/morpheus-core/Cargo.toml index b41c823..33eba26 100644 --- a/morpheus-core/Cargo.toml +++ b/morpheus-core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iop-morpheus-core" -version = "0.0.1" +version = "0.0.2" authors = ["IoP Ventures LLC ", "Rache Bartmoss ", "wigy "] edition = "2018" @@ -28,7 +28,6 @@ varint = "*" [dev-dependencies] hex = "*" - [target.'cfg(target_os="android")'.dependencies] jni = { version = "0.17", default-features = false } android_logger = "0.9" diff --git a/morpheus-sdk/Cargo.toml b/morpheus-sdk/Cargo.toml index a24e3a1..88e313e 100644 --- a/morpheus-sdk/Cargo.toml +++ b/morpheus-sdk/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iop-morpheus-sdk" -version = "0.0.1" +version = "0.0.2" authors = ["IoP Ventures LLC ", "Rache Bartmoss ", "wigy "] license = "LGPL-3.0-or-later" edition = "2018" @@ -17,7 +17,7 @@ failure = "*" futures = "*" hyper = "*" iop-keyvault = "0.0.2" -iop-morpheus-core = { path = "../morpheus-core" } +iop-morpheus-core = "0.0.2" log = "*" multihash = "*" rand = "*"