Infos on compilation in README.md

This commit is contained in:
0xturboblitz
2023-09-21 17:05:01 +02:00
parent bd8f8efae7
commit d6de6b8a66
6 changed files with 38 additions and 2 deletions

View File

@@ -197,12 +197,12 @@ function App(): JSX.Element {
if (err) {
console.error(err);
setProofResult(
err.toString() + ' time elapsed: ' + (end - start) + 'ms',
"res:" + err.toString() + ' time elapsed: ' + (end - start) + 'ms',
);
} else {
console.log(res);
setProofResult(
res.toString() + ' time elapsed: ' + (end - start) + 'ms',
"res:" + res.toString() + ' time elapsed: ' + (end - start) + 'ms',
);
}
});

View File

@@ -4,6 +4,16 @@ To build libhalo2_passport.so, run in /script:
```
It will cross-compile using the config in app/android/react-native-passport-reader/android/build.gradle
You'll potentially need to set the rust-toolchain rust version as global default. Example:
```
rustup default 1.67.0
```
And install the targets like:
```
rustup target add aarch64-linux-android
```
Then:
yarn start => a or i