mirror of
https://github.com/selfxyz/self.git
synced 2026-02-08 13:25:59 -05:00
Infos on compilation in README.md
This commit is contained in:
@@ -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',
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user