From 273a9f048395ed0a9ced1e77887097ee20a1925a Mon Sep 17 00:00:00 2001 From: Valentyn Faychuk Date: Wed, 18 Dec 2024 16:54:49 +0200 Subject: [PATCH] reproducible build --- Cargo.lock | 22 --------------------- Cargo.toml | 56 +++++++++++++++++++++++++++--------------------------- 2 files changed, 28 insertions(+), 50 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 85d12e4..56b01d3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2032,7 +2032,6 @@ dependencies = [ "hyper-rustls 0.27.3", "hyper-util", "once_cell", - "prometheus", "prost", "prost-types", "rand 0.8.5", @@ -3228,21 +3227,6 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "prometheus" -version = "0.13.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d33c28a30771f7f96db69893f78b857f7450d7e0237e9c8fc6427a81bae7ed1" -dependencies = [ - "cfg-if", - "fnv", - "lazy_static", - "memchr", - "parking_lot", - "protobuf", - "thiserror", -] - [[package]] name = "prost" version = "0.13.3" @@ -3296,12 +3280,6 @@ dependencies = [ "prost", ] -[[package]] -name = "protobuf" -version = "2.28.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "106dd99e98437432fed6519dedecfade6a06a73bb7b2a1e019fdd2bee5778d94" - [[package]] name = "qstring" version = "0.7.2" diff --git a/Cargo.toml b/Cargo.toml index 863b009..ee464d2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,42 +1,42 @@ [package] name = "hacker-challenge" +rust-version = "1.83.0" version = "0.1.0" edition = "2021" [dependencies] -actix-web = "4.9" -async-stream = "0.3" -chrono = "0.4" -dashmap = "6.1" -prost = "0.13" -prost-types = "0.13" -rand = "0.8" -serde = { version = "1.0", features = ["derive"] } -serde_with = { version = "3.11", features = ["macros", "base64"] } -serde_json = "1.0" -solana-client = "2.0" -solana-program = "2.0" -solana-sdk = "2.0" -spl-associated-token-account = "5.0" -spl-token = "6.0" -tokio = { version = "1.40", features = ["macros", "rt-multi-thread", "fs"] } # this can be "full" -tokio-stream = { version = "0.1", features = ["sync"] } -tonic = "0.12" +once_cell = "1.20.2" +env_logger = "0.11.5" +actix-web = "4.9.0" +async-stream = "0.3.6" +chrono = "0.4.38" +dashmap = "6.1.0" +prost = "0.13.3" +prost-types = "0.13.3" +rand = "0.8.5" +serde = { version = "1.0.210", features = ["derive"] } +serde_with = { version = "3.11.0", features = ["macros", "base64"] } +serde_json = "1.0.128" +solana-client = "2.0.13" +solana-program = "2.0.13" +solana-sdk = "2.0.13" +spl-associated-token-account = "5.0.1" +spl-token = "6.0.0" +tokio = { version = "1.40.0", features = ["macros", "rt-multi-thread", "fs"] } # this can be "full" +tokio-stream = { version = "0.1.16", features = ["sync"] } +tonic = "0.12.3" # sgx poc dependencies -rustls = "0.23" -tokio-rustls = "0.26" -tower = { version = "0.5", features = ["full"] } -tower-http = { version = "0.6", features = ["full"] } +rustls = "0.23.14" +tokio-rustls = "0.26.26" +tower = { version = "0.5.1", features = ["full"] } +tower-http = { version = "0.6.2", features = ["full"] } hyper = "1.4.1" hyper-util = "0.1.7" -hyper-rustls = { version = "0.27", features = ["http2"] } -detee-sgx = { git = "ssh://git@gitea.detee.cloud/SGX/detee-sgx", branch = "hacker-challenge", features = ["tonic", "occlum", "sealing"] } - -once_cell = "1.20.2" -env_logger = "0.11" +hyper-rustls = { version = "0.27.3", features = ["http2"] } +detee-sgx = { git = "https://gitea.detee.cloud/general/detee-sgx", features = ["tonic", "occlum", "sealing"] } [build-dependencies] -tonic-build = "0.12" +tonic-build = "0.12.3" [patch.crates-io.curve25519-dalek] git = "https://github.com/anza-xyz/curve25519-dalek.git"