From 0131d1437e5f1c729aed0f4d229e4275acecef37 Mon Sep 17 00:00:00 2001 From: Daniel Kaiser Date: Fri, 25 Mar 2022 16:08:13 +0100 Subject: [PATCH] chore(rln): add cleanrln make rule + docu (#910) * chore(rln): add cleanrln to make rule - add `cargo clean` to `make clean` - add new `cleanrln` make rule that `cargo clean`s the rln vendor repo * docs(rln): add trouble shooting section - list `make cleanrln` as a solution to force rebuilding the rln crate --- Makefile | 5 +++++ docs/tutorial/rln-chat2-live-testnet.md | 18 ++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/Makefile b/Makefile index 558bd21a8..669a0a36d 100644 --- a/Makefile +++ b/Makefile @@ -223,6 +223,11 @@ clean: | clean-common ifneq ($(USE_LIBBACKTRACE), 0) + $(MAKE) -C vendor/nim-libbacktrace clean $(HANDLE_OUTPUT) endif + cargo clean --manifest-path vendor/rln/Cargo.toml + +# clean the rln build (forces recompile of old crates on next build) +cleanrln: + cargo clean --manifest-path vendor/rln/Cargo.toml endif # "variables.mk" was not included diff --git a/docs/tutorial/rln-chat2-live-testnet.md b/docs/tutorial/rln-chat2-live-testnet.md index ee131a40c..f3b164881 100644 --- a/docs/tutorial/rln-chat2-live-testnet.md +++ b/docs/tutorial/rln-chat2-live-testnet.md @@ -123,3 +123,21 @@ Connecting to storenode: 16Uiu2HAmPLe7Mzm8TsYUubgCAW1aJoeFScxrLj8ppHFivPo97bUZ >> /exit quitting... ``` + +# Trouble shooting + +## compilation error: found possibly newer version of crate + + +If running `make chat2 RLN=true` yields a compile error like this + +``` +error[E0460]: found possibly newer version of crate `std` which `sapling_crypto_ce` depends on + --> src/circuit/polynomial.rs:1:5 + | +1 | use sapling_crypto::bellman::pairing::ff::{Field, PrimeField, PrimeFieldRepr}; +``` + +run + +`make cleanrln` before running `make chat2 RLN=true` again.