Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Requirements

  • protoc - Protocol Buffer compiler
  • rustup - Rust toolchain
  • wasm-pack - Rust WebAssembly tool (only required to build WASM library)
  • cargo-lipo - cargo subcommand for creating universal libraries for iOS (only required to build iOS library)
    • Install using cargo install cargo-lipo

Build for iOS

  1. Add required Rust targets
rustup target add aarch64-apple-ios x86_64-apple-ios
  1. Compile to universal library (will output at target/universal/release/didcommgrpc.a)
cargo lipo --release

Build for WASM (node)

wasm-pack build --target nodejs --out-dir ../wasm/packages/didcomm-grpc-node/src

Testing

cargo test