Skip to content

Commit 5bb7813

Browse files
committed
revert to switching rust versions as required
1 parent 02fec3d commit 5bb7813

17 files changed

+133
-7
lines changed

docs/building.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Install [Rust](https://www.rust-lang.org/tools/install) via [rustup.rs](https://
7272
```
7373
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
7474
source ~/.bashrc
75-
rustup install 1.85.1
75+
rustup install 1.85.1 1.81.0
7676
rustup default 1.85.1
7777
cargo install cargo-ndk --version 2.12.7 --locked
7878
```
@@ -209,11 +209,11 @@ brew install brotli cairo coreutils gdbm gettext glib gmp libevent libidn2 libng
209209
```
210210
<!-- TODO: determine which of the above list are not needed at all. -->
211211

212-
Download and install [Rust](https://www.rust-lang.org/tools/install). [Rustup](https://rustup.rs/) is recommended for Rust setup. Use `rustc` to confirm successful installation. Install toolchain 1.85.1 and `cbindgen` and `cargo-lipo` too. You will also have to add the platform target(s) `aarch64-apple-ios` and/or `aarch64-apple-darwin`. You can use the command(s):
212+
Download and install [Rust](https://www.rust-lang.org/tools/install). [Rustup](https://rustup.rs/) is recommended for Rust setup. Use `rustc` to confirm successful installation. Install toolchains 1.81.0 and 1.85.1 and `cbindgen` and `cargo-lipo` too. You will also have to add the platform target(s) `aarch64-apple-ios` and/or `aarch64-apple-darwin`. You can use the command(s):
213213
```
214214
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
215215
source ~/.bashrc
216-
rustup install 1.85.1
216+
rustup install 1.85.1 1.81.0
217217
rustup default 1.85.1
218218
cargo install cargo-ndk --version 2.12.7 --locked
219219
cargo install cbindgen cargo-lipo
@@ -306,7 +306,7 @@ Run `flutter doctor` in PowerShell to confirm its installation.
306306
### Rust
307307
Install [Rust](https://www.rust-lang.org/tools/install) on the Windows host (not in WSL2). Download the installer from [rustup.rs](https://rustup.rs), make sure it works on the commandline (you may need to open a new terminal), and install the following versions:
308308
```
309-
rustup install 1.85.1
309+
rustup install 1.85.1 1.81.0
310310
rustup default 1.85.1
311311
cargo install cargo-ndk --version 2.12.7 --locked
312312
```

scripts/android/build_all.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,14 @@ mkdir -p build
88
PLUGINS_DIR=../../crypto_plugins
99

1010
(cd "${PLUGINS_DIR}"/flutter_liblelantus/scripts/android && ./build_all.sh )
11+
12+
# libepiccash requires old rust
13+
source ../rust_version.sh
14+
set_rust_version_for_libepiccash
1115
(cd "${PLUGINS_DIR}"/flutter_libepiccash/scripts/android && ./build_all.sh )
16+
# set rust (back) to a more recent stable release after building epiccash
17+
set_rust_to_everything_else
18+
1219
(cd "${PLUGINS_DIR}"/frostdart/scripts/android && ./build_all.sh )
1320

1421
wait

scripts/android/build_all_campfire.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,14 @@ mkdir -p build
88
PLUGINS_DIR=../../crypto_plugins
99

1010
(cd "${PLUGINS_DIR}"/flutter_liblelantus/scripts/android && ./build_all.sh )
11+
12+
# libepiccash requires old rust
13+
source ../rust_version.sh
14+
set_rust_version_for_libepiccash
1115
(cd "${PLUGINS_DIR}"/flutter_libepiccash/scripts/android && ./build_all.sh )
16+
# set rust (back) to a more recent stable release after building epiccash
17+
set_rust_to_everything_else
18+
1219
(cd "${PLUGINS_DIR}"/frostdart/scripts/android && ./build_all.sh )
1320

1421
wait

scripts/android/build_all_duo.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,14 @@ mkdir -p build
1010
PLUGINS_DIR=../../crypto_plugins
1111

1212
(cd "${PLUGINS_DIR}"/flutter_liblelantus/scripts/android && ./build_all.sh )
13+
14+
# libepiccash requires old rust
15+
source ../rust_version.sh
16+
set_rust_version_for_libepiccash
1317
(cd "${PLUGINS_DIR}"/flutter_libepiccash/scripts/android && ./build_all.sh )
18+
# set rust (back) to a more recent stable release after building epiccash
19+
set_rust_to_everything_else
20+
1421
(cd "${PLUGINS_DIR}"/frostdart/scripts/android && ./build_all.sh )
1522

1623
wait

scripts/ios/build_all.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,14 @@ rustup target add aarch64-apple-ios
1111
rustup target add x86_64-apple-ios
1212

1313
(cd ../../crypto_plugins/flutter_liblelantus/scripts/ios && ./build_all.sh )
14+
15+
# libepiccash requires old rust
16+
source ../rust_version.sh
17+
set_rust_version_for_libepiccash
1418
(cd ../../crypto_plugins/flutter_libepiccash/scripts/ios && ./build_all.sh )
19+
# set rust (back) to a more recent stable release after building epiccash
20+
set_rust_to_everything_else
21+
1522
(cd ../../crypto_plugins/frostdart/scripts/ios && ./build_all.sh )
1623

1724
wait

scripts/ios/build_all_campfire.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,14 @@ rustup target add aarch64-apple-ios
1111
rustup target add x86_64-apple-ios
1212

1313
(cd ../../crypto_plugins/flutter_liblelantus/scripts/ios && ./build_all.sh )
14+
15+
# libepiccash requires old rust
16+
source ../rust_version.sh
17+
set_rust_version_for_libepiccash
1418
(cd ../../crypto_plugins/flutter_libepiccash/scripts/ios && ./build_all.sh )
19+
# set rust (back) to a more recent stable release after building epiccash
20+
set_rust_to_everything_else
21+
1522
(cd ../../crypto_plugins/frostdart/scripts/ios && ./build_all.sh )
1623

1724
wait

scripts/ios/build_all_duo.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,14 @@ rustup target add aarch64-apple-ios
1313
rustup target add x86_64-apple-ios
1414

1515
(cd ../../crypto_plugins/flutter_liblelantus/scripts/ios && ./build_all.sh )
16+
17+
# libepiccash requires old rust
18+
source ../rust_version.sh
19+
set_rust_version_for_libepiccash
1620
(cd ../../crypto_plugins/flutter_libepiccash/scripts/ios && ./build_all.sh )
21+
# set rust (back) to a more recent stable release after building epiccash
22+
set_rust_to_everything_else
23+
1724
(cd ../../crypto_plugins/frostdart/scripts/ios && ./build_all.sh )
1825

1926
wait

scripts/linux/build_all.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,14 @@ set -x -e
99
mkdir -p build
1010
./build_secure_storage_deps.sh
1111
(cd ../../crypto_plugins/flutter_liblelantus/scripts/linux && ./build_all.sh )
12+
13+
# libepiccash requires old rust
14+
source ../rust_version.sh
15+
set_rust_version_for_libepiccash
1216
(cd ../../crypto_plugins/flutter_libepiccash/scripts/linux && ./build_all.sh )
17+
# set rust (back) to a more recent stable release after building epiccash
18+
set_rust_to_everything_else
19+
1320
(cd ../../crypto_plugins/frostdart/scripts/linux && ./build_all.sh )
1421

1522
./build_secp256k1.sh

scripts/linux/build_all_campfire.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,14 @@ set -x -e
99
mkdir -p build
1010
./build_secure_storage_deps.sh
1111
(cd ../../crypto_plugins/flutter_liblelantus/scripts/linux && ./build_all.sh )
12+
13+
# libepiccash requires old rust
14+
source ../rust_version.sh
15+
set_rust_version_for_libepiccash
1216
(cd ../../crypto_plugins/flutter_libepiccash/scripts/linux && ./build_all.sh )
17+
# set rust (back) to a more recent stable release after building epiccash
18+
set_rust_to_everything_else
19+
1320
(cd ../../crypto_plugins/frostdart/scripts/linux && ./build_all.sh )
1421

1522
./build_secp256k1.sh

scripts/linux/build_all_duo.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,14 @@ set -x -e
1212
mkdir -p build
1313
./build_secure_storage_deps.sh &
1414
(cd ../../crypto_plugins/flutter_liblelantus/scripts/linux && ./build_all.sh )
15+
16+
# libepiccash requires old rust
17+
source ../rust_version.sh
18+
set_rust_version_for_libepiccash
1519
(cd ../../crypto_plugins/flutter_libepiccash/scripts/linux && ./build_all.sh )
20+
# set rust (back) to a more recent stable release after building epiccash
21+
set_rust_to_everything_else
22+
1623
(cd ../../crypto_plugins/frostdart/scripts/linux && ./build_all.sh )
1724

1825
./build_secp256k1.sh

0 commit comments

Comments
 (0)