Remove unused dependencies, add profiles

This commit is contained in:
howardwu 2020-06-07 23:01:57 -07:00
parent 3bd2e19e8c
commit 79bea057b3
3 changed files with 89 additions and 3 deletions

63
Cargo.lock generated
View File

@ -166,6 +166,15 @@ version = "0.1.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822"
[[package]]
name = "ci_info"
version = "0.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a19c5f9baeac8a1176ca7fc58a0cc1abadd84d360365a93d1dd31e926f3f502b"
dependencies = [
"envmnt",
]
[[package]]
name = "clang-sys"
version = "0.29.3"
@ -329,6 +338,16 @@ dependencies = [
"termcolor",
]
[[package]]
name = "envmnt"
version = "0.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5fba7e7d8c007e12db7b3bd6f04b8e47e206c9173d9c75413a042ccc941723c8"
dependencies = [
"fsio",
"indexmap",
]
[[package]]
name = "failure"
version = "0.1.7"
@ -367,6 +386,12 @@ dependencies = [
"void",
]
[[package]]
name = "fsio"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2131cb03096f67334dfba2f0bc46afc5564b08a919d042c6e217e2665741fc54"
[[package]]
name = "futures"
version = "0.1.29"
@ -382,6 +407,15 @@ dependencies = [
"typenum",
]
[[package]]
name = "getopts"
version = "0.2.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "14dbbfd5c71d70241ecf9e6f13737f7b5ce823821063188d7e46c41d371eebd5"
dependencies = [
"unicode-width",
]
[[package]]
name = "getrandom"
version = "0.1.14"
@ -423,6 +457,15 @@ dependencies = [
"quick-error",
]
[[package]]
name = "indexmap"
version = "1.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c398b2b113b55809ceb9ee3e753fcbac793f1956663f3c36549c1346015c2afe"
dependencies = [
"autocfg",
]
[[package]]
name = "itertools"
version = "0.7.11"
@ -475,6 +518,7 @@ dependencies = [
"log",
"rand",
"rand_core",
"rusty-hook",
"serde",
"serde_json",
"snarkos-algorithms",
@ -510,7 +554,6 @@ dependencies = [
"log",
"rand",
"sha2",
"snarkos-algorithms",
"snarkos-curves",
"snarkos-errors",
"snarkos-gadgets",
@ -605,6 +648,12 @@ dependencies = [
"autocfg",
]
[[package]]
name = "nias"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ab250442c86f1850815b5d268639dff018c0627022bc1940eb2d642ca1ce12f0"
[[package]]
name = "nom"
version = "5.1.1"
@ -886,6 +935,18 @@ version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
[[package]]
name = "rusty-hook"
version = "0.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "27138b73a8ce63ae918707a5e3b57f9b0c0842a57b82f0e43474cf4e3aaf0ff4"
dependencies = [
"ci_info",
"getopts",
"nias",
"toml",
]
[[package]]
name = "ryu"
version = "1.0.2"

View File

@ -36,3 +36,27 @@ serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0" }
toml = { version = "0.5" }
thiserror = { version = "1.0" }
[dev-dependencies]
rusty-hook = { version = "0.11.1" }
[profile.release]
opt-level = 3
lto = "thin"
incremental = true
[profile.bench]
opt-level = 3
debug = false
rpath = false
lto = "thin"
incremental = true
debug-assertions = false
[profile.dev]
opt-level = 0
[profile.test]
opt-level = 0
debug-assertions = true
debug = true

View File

@ -8,15 +8,16 @@ edition = "2018"
leo-ast = { path = "../ast", version = "0.1.0" }
leo-types = { path = "../types", version = "0.1.0" }
snarkos-algorithms = { path = "../../snarkOS/algorithms", version = "0.8.0" }
snarkos-curves = { path = "../../snarkOS/curves", version = "0.8.0" }
snarkos-errors = { path = "../../snarkOS/errors", version = "0.8.0" }
snarkos-gadgets = { path = "../../snarkOS/gadgets", version = "0.8.0" }
snarkos-models = { path = "../../snarkOS/models", version = "0.8.0" }
snarkos-utilities = { path = "../../snarkOS/utilities", version = "0.8.0" }
hex = { version = "0.4.2" }
log = { version = "0.4" }
rand = { version = "0.7" }
sha2 = { version = "0.8" }
thiserror = { version = "1.0" }
[dev-dependencies]
snarkos-utilities = { path = "../../snarkOS/utilities", version = "0.8.0" }