瀏覽代碼

fix(hermes): fix rust version

Ali Behjati 2 年之前
父節點
當前提交
5f11c3d042
共有 3 個文件被更改,包括 4 次插入2 次删除
  1. 1 1
      .pre-commit-config.yaml
  2. 1 1
      hermes/Dockerfile
  3. 2 0
      hermes/rust-toolchain

+ 1 - 1
.pre-commit-config.yaml

@@ -62,7 +62,7 @@ repos:
       - id: cargo-fmt-hermes
         name: Cargo format for Pyth Hermes
         language: "rust"
-        entry: cargo +nightly-2023-03-01 fmt --manifest-path ./hermes/Cargo.toml --all -- --config-path rustfmt.toml
+        entry: cargo +nightly-2023-07-23 fmt --manifest-path ./hermes/Cargo.toml --all -- --config-path rustfmt.toml
         pass_filenames: false
         files: hermes
       # Hooks for message buffer contract

+ 1 - 1
hermes/Dockerfile

@@ -13,7 +13,7 @@ RUN sh -c "$(curl -sSfL https://release.solana.com/v1.14.17/install)"
 ENV PATH="/root/.local/share/solana/install/active_release/bin:$PATH"
 
 # Set default toolchain
-RUN rustup default nightly-2023-01-15
+RUN rustup default nightly-2023-07-23
 
 # Build
 WORKDIR /src

+ 2 - 0
hermes/rust-toolchain

@@ -0,0 +1,2 @@
+[toolchain]
+channel = "nightly-2023-07-23"