Skip to content

Commit

Permalink
Use qimalloc for size savings
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Jun 20, 2019
1 parent 6704df1 commit 48ef173
Show file tree
Hide file tree
Showing 13 changed files with 48 additions and 14 deletions.
6 changes: 5 additions & 1 deletion blake2/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
6 changes: 5 additions & 1 deletion bls12pairing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
6 changes: 5 additions & 1 deletion ecadd/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
6 changes: 5 additions & 1 deletion ecmul/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
6 changes: 5 additions & 1 deletion ecpairing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
6 changes: 5 additions & 1 deletion ecrecover/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
6 changes: 5 additions & 1 deletion ed25519/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@ publish = false
edition = "2018"

[dependencies]
ewasm_api = "0.9"
hex = "0.3.1"
sha2 = "0.7.1"

[dependencies.ewasm_api]
version = "0.9"
default-features = false
features = ["std", "qimalloc"]

[dependencies.rand]
version = "^0.5.5"

Expand Down
6 changes: 4 additions & 2 deletions identity/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
6 changes: 5 additions & 1 deletion keccak256/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
2 changes: 1 addition & 1 deletion modexp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }

Expand Down
2 changes: 1 addition & 1 deletion ripemd160/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion sha1/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion sha256/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 48ef173

Please sign in to comment.