From e4a0e365ff2cbf3e75901efedd73e77ac09b427f Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Tue, 28 May 2019 23:34:30 +0100 Subject: [PATCH] Use qimalloc for size savings --- blake2/Cargo.toml | 6 +++++- bls12pairing/Cargo.toml | 6 +++++- ecadd/Cargo.toml | 6 +++++- ecmul/Cargo.toml | 6 +++++- ecpairing/Cargo.toml | 6 +++++- ecrecover/Cargo.toml | 6 +++++- ed25519/Cargo.toml | 6 +++++- identity/Cargo.toml | 6 ++++-- keccak256/Cargo.toml | 6 +++++- modexp/Cargo.toml | 2 +- ripemd160/Cargo.toml | 2 +- sha1/Cargo.toml | 2 +- sha256/Cargo.toml | 2 +- 13 files changed, 48 insertions(+), 14 deletions(-) diff --git a/blake2/Cargo.toml b/blake2/Cargo.toml index 9207d69..b6b2c51 100644 --- a/blake2/Cargo.toml +++ b/blake2/Cargo.toml @@ -10,7 +10,11 @@ edition = "2018" [dependencies] blake2 = "0.7" -ewasm_api = "0.9" + +[dependencies.ewasm_api] +version = "0.9" +default-features = false +features = ["std", "qimalloc"] [lib] crate-type = ["cdylib"] diff --git a/bls12pairing/Cargo.toml b/bls12pairing/Cargo.toml index b4c5e7e..69475e6 100644 --- a/bls12pairing/Cargo.toml +++ b/bls12pairing/Cargo.toml @@ -9,8 +9,12 @@ publish = false edition = "2018" [dependencies] -ewasm_api = "0.9" ethereum-bls12 = { git = "https://github.com/ewasm/ethereum-bls12.rs", tag = "0.1.2" } +[dependencies.ewasm_api] +version = "0.9" +default-features = false +features = ["std", "qimalloc"] + [lib] crate-type = ["cdylib"] diff --git a/ecadd/Cargo.toml b/ecadd/Cargo.toml index 4a82c6a..d818e51 100644 --- a/ecadd/Cargo.toml +++ b/ecadd/Cargo.toml @@ -9,8 +9,12 @@ publish = false edition = "2018" [dependencies] -ewasm_api = "0.9" ethereum-bn128 = { git = "https://github.com/ewasm/ethereum-bn128.rs", tag = "0.1.0" } +[dependencies.ewasm_api] +version = "0.9" +default-features = false +features = ["std", "qimalloc"] + [lib] crate-type = ["cdylib"] diff --git a/ecmul/Cargo.toml b/ecmul/Cargo.toml index 87335e5..dd5585d 100644 --- a/ecmul/Cargo.toml +++ b/ecmul/Cargo.toml @@ -9,8 +9,12 @@ publish = false edition = "2018" [dependencies] -ewasm_api = "0.9" ethereum-bn128 = { git = "https://github.com/ewasm/ethereum-bn128.rs", tag = "0.1.0" } +[dependencies.ewasm_api] +version = "0.9" +default-features = false +features = ["std", "qimalloc"] + [lib] crate-type = ["cdylib"] diff --git a/ecpairing/Cargo.toml b/ecpairing/Cargo.toml index 37cdf76..9d89904 100644 --- a/ecpairing/Cargo.toml +++ b/ecpairing/Cargo.toml @@ -9,8 +9,12 @@ publish = false edition = "2018" [dependencies] -ewasm_api = "0.9" ethereum-bn128 = { git = "https://github.com/ewasm/ethereum-bn128.rs", tag = "0.1.0" } +[dependencies.ewasm_api] +version = "0.9" +default-features = false +features = ["std", "qimalloc"] + [lib] crate-type = ["cdylib"] diff --git a/ecrecover/Cargo.toml b/ecrecover/Cargo.toml index 39bb7f6..03e2725 100644 --- a/ecrecover/Cargo.toml +++ b/ecrecover/Cargo.toml @@ -9,10 +9,14 @@ publish = false edition = "2018" [dependencies] -ewasm_api = "0.9" libsecp256k1 = "^0.2.1" tiny-keccak = "1.4" +[dependencies.ewasm_api] +version = "0.9" +default-features = false +features = ["std", "qimalloc"] + [dev-dependencies] rustc-hex = "1.0" diff --git a/ed25519/Cargo.toml b/ed25519/Cargo.toml index d272b68..9598a3d 100644 --- a/ed25519/Cargo.toml +++ b/ed25519/Cargo.toml @@ -9,10 +9,14 @@ publish = false edition = "2018" [dependencies] -ewasm_api = "0.9" hex = "0.3.1" sha2 = "^0.8" +[dependencies.ewasm_api] +version = "0.9" +default-features = false +features = ["std", "qimalloc"] + [dependencies.rand] version = "0.6.0" diff --git a/identity/Cargo.toml b/identity/Cargo.toml index a493496..8ea6dad 100644 --- a/identity/Cargo.toml +++ b/identity/Cargo.toml @@ -8,8 +8,10 @@ description = "Ethereum identity precompile in Rust" publish = false edition = "2018" -[dependencies] -ewasm_api = "0.9" +[dependencies.ewasm_api] +version = "0.9" +default-features = false +features = ["std", "qimalloc"] [lib] crate-type = ["cdylib"] diff --git a/keccak256/Cargo.toml b/keccak256/Cargo.toml index 8385b2d..6e68627 100644 --- a/keccak256/Cargo.toml +++ b/keccak256/Cargo.toml @@ -9,8 +9,12 @@ publish = false edition = "2018" [dependencies] -ewasm_api = "0.9" tiny-keccak = "1.4" +[dependencies.ewasm_api] +version = "0.9" +default-features = false +features = ["std", "qimalloc"] + [lib] crate-type = ["cdylib"] diff --git a/modexp/Cargo.toml b/modexp/Cargo.toml index 861c559..6aa40a5 100644 --- a/modexp/Cargo.toml +++ b/modexp/Cargo.toml @@ -9,7 +9,7 @@ publish = false edition = "2018" [dependencies] -ewasm_api = "0.9" +ewasm_api = { version = "0.9", default-features = false, features = ["std", "qimalloc"] } num = { version = "0.1.36", default-features = false } num-bigint = { version = "0.1.36", default-features = false } diff --git a/ripemd160/Cargo.toml b/ripemd160/Cargo.toml index 0121ad4..f937bad 100644 --- a/ripemd160/Cargo.toml +++ b/ripemd160/Cargo.toml @@ -9,7 +9,7 @@ publish = false edition = "2018" [dependencies] -ewasm_api = "0.9" +ewasm_api = { version = "0.9", default-features = false, features = ["std", "qimalloc"] } ripemd160 = "0.7" [lib] diff --git a/sha1/Cargo.toml b/sha1/Cargo.toml index 1adcc2d..ff7b0fd 100644 --- a/sha1/Cargo.toml +++ b/sha1/Cargo.toml @@ -9,7 +9,7 @@ publish = false edition = "2018" [dependencies] -ewasm_api = "0.9" +ewasm_api = { version = "0.9", default-features = false, features = ["std", "qimalloc"] } sha1 = "0.6" [lib] diff --git a/sha256/Cargo.toml b/sha256/Cargo.toml index 7930c2d..4f23067 100644 --- a/sha256/Cargo.toml +++ b/sha256/Cargo.toml @@ -9,7 +9,7 @@ publish = false edition = "2018" [dependencies] -ewasm_api = "0.9" +ewasm_api = { version = "0.9", default-features = false, features = ["std", "qimalloc"] } sha2 = "0.7" [lib]