Installation Guides

Installation Guides - Complete Setup Instructions

This document provides comprehensive installation instructions for all Roru SDK implementations across different platforms and languages.

Prerequisites

General Requirements

  • Beta Access: Roru SDK is currently in beta. You need to register and get approved through the Roru Labs portal.

  • API Key: Obtain your API key from the portal after approval.

  • Network Access: Access to Roru infrastructure endpoints (provided in portal).

System Requirements

Minimum:

  • 2GB RAM

  • 100MB disk space

  • Network connectivity

Recommended:

  • 4GB+ RAM

  • 500MB+ disk space

  • Stable network connection

Rust SDK

Installation

Using Cargo (Recommended):

Add to your Cargo.toml:

Install:

Features

Enable specific features as needed:

Quick Start

Building from Source

TypeScript/JavaScript SDK

Installation

npm:

yarn:

pnpm:

Browser Usage

Node.js Usage

TypeScript Usage

Webpack Configuration

Python SDK

Installation

pip:

pip with specific version:

From source:

Virtual Environment

Requirements

Create requirements.txt:

Install:

Usage

Go SDK

Installation

go get:

go mod:

Then run:

Usage

Swift SDK (iOS/macOS)

Swift Package Manager

Add to Package.swift:

Or in Xcode:

  1. File → Add Packages

  2. Enter: https://github.com/roru-labs/sdk-swift

  3. Select version: 0.1.0

CocoaPods

Add to Podfile:

Install:

Usage

C Bindings

Installation

Linux/macOS:

Windows:

Linking

CMake:

pkg-config:

Usage

Configuration

Environment Variables

Set these environment variables:

Configuration File

Create roru.config.json:

Load in code:

Verification

Test Installation

Rust:

TypeScript:

Python:

Quick Verification

Create a test file:

Rust (test.rs):

TypeScript (test.ts):

Troubleshooting

Common Issues

Network Connection Errors:

  • Verify API key is correct

  • Check network connectivity

  • Ensure endpoint URL is correct

Build Errors:

  • Update to latest SDK version

  • Check compiler version requirements

  • Verify dependencies are installed

Runtime Errors:

  • Check configuration

  • Verify API key permissions

  • Review error messages

Getting Help

  • Documentation: https://docs.roru.labs

  • GitHub Issues: https://github.com/roru-labs/sdk-{language}/issues

  • Discord: https://discord.gg/roru-labs

Next Steps

After installation:

  1. Get API Key: Register at Roru Labs portal

  2. Configure Client: Set up configuration

  3. Create Wallet: Initialize your first wallet

  4. Read Tutorials: Check getting started guides

  5. Explore Examples: Review code examples

Conclusion

The SDK installation is straightforward across all platforms. Choose the language that best fits your project and follow the platform-specific instructions above.

Last updated