- protoc - Protocol Buffer compiler
- rustup - Rust toolchain
- wasm-pack - Rust WebAssembly tool (only required to build WASM library)
- cargo-lipo -
cargosubcommand for creating universal libraries for iOS (only required to build iOS library)- Install using
cargo install cargo-lipo
- Install using
- Add required Rust targets
rustup target add aarch64-apple-ios x86_64-apple-ios
- Compile to universal library (will output at
target/universal/release/didcommgrpc.a)
cargo lipo --release
wasm-pack build --target nodejs --out-dir ../wasm/packages/didcomm-grpc-node/src
cargo test