From 87712a7ca054bbe214cdcfc01d23ebece64fd4f8 Mon Sep 17 00:00:00 2001 From: Sasha <33594434+sashaaldrick@users.noreply.github.com> Date: Thu, 22 Aug 2024 16:31:18 +0100 Subject: [PATCH 1/2] WEB3-65: replaced old installation instructions with rzup (#131) replaced old installation instructions with rzup --- README.md | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 39933c10..2dc6cb2c 100644 --- a/README.md +++ b/README.md @@ -30,14 +30,24 @@ curl https://sh.rustup.rs -sSf | sh curl -L https://foundry.paradigm.xyz | bash ``` -Next, you will need to install the `cargo risczero` tool. -We'll use [`cargo binstall`][cargo-binstall] to get `cargo-risczero` installed, and then install the `risc0` toolchain. -See [RISC Zero installation] for more details. +Next, you will use `rzup` to install `cargo-risczero`. + +To install `rzup`, run the following command and follow the instructions: + +```sh +curl -L https://risczero.com/install | bash +``` + +Next we can install the RISC Zero toolchain by running `rzup`: + +```sh +rzup +``` + +You can verify the installation was successful by running: ```sh -cargo install cargo-binstall -cargo binstall cargo-risczero -cargo risczero install +cargo risczero --version ``` Now you have all the tools you need to develop and deploy an application with [RISC Zero]. From e296def1a60c92eeb9333fdfa19007e62286dc18 Mon Sep 17 00:00:00 2001 From: Victor Graf Date: Tue, 10 Sep 2024 10:42:39 -0700 Subject: [PATCH 2/2] WEB3-65: Rerun build when RISC0_USE_DOCKER changes (#134) add cargo:rerun-if-env-changed=RISC0_USE_DOCKER --- methods/build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/methods/build.rs b/methods/build.rs index 11130e59..6d2b67ec 100644 --- a/methods/build.rs +++ b/methods/build.rs @@ -24,6 +24,7 @@ const SOLIDITY_ELF_PATH: &str = "../tests/Elf.sol"; fn main() { // Builds can be made deterministic, and thereby reproducible, by using Docker to build the // guest. Check the RISC0_USE_DOCKER variable and use Docker to build the guest if set. + println!("cargo:rerun-if-env-changed=RISC0_USE_DOCKER"); let use_docker = env::var("RISC0_USE_DOCKER").ok().map(|_| DockerOptions { root_dir: Some("../".into()), });