ironoxide 0.10.0

A pure-Rust SDK for accessing IronCore's privacy platform
Documentation
#!/usr/bin/env bash

set -e
set -x

# If no special target provided, use default cargo arch for building and run all unit tests
if [ -z "$TARGET" ]; then
    cargo t --verbose
    cargo fmt -- --check
# Cross doesn't have support for iOS builds, so use cargo to add the target and compile for it
elif [ "$IOS" = 1 ]; then
    rustup target add "$TARGET"
    cargo build --target "$TARGET"
# For everything else, use cross to compile for the specified target
else
    cross build --target "$TARGET"
fi