GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Toss
  • GitHub
  • Quick Start
  • Installation
  • Development Setup
  • Overview
  • Pairing Devices
  • Using Toss
  • Architecture
  • API Reference
  • Platform Support
  • Testing
  • Overview
  • macOS

This view

  • Original page
  • New address

GeezerVison is showing toss.docs.renner.dev — Development Setup

Development Setup

Development Setup

Section titled “Development Setup”

Set up your development environment for Toss.

Prerequisites

Section titled “Prerequisites”

Ensure you have all dependencies installed:

Terminal window
./scripts/setup.sh

Required:

  • Rust 1.75+
  • Flutter 3.47+ with Dart 3.13+
  • Platform-specific build tools (Xcode, Android SDK, etc.)

First Steps

Section titled “First Steps”

1. Clone Repository

Section titled “1. Clone Repository”
Terminal window
git clone https://github.com/rennerdo30/toss-share.git
cd toss-share

2. Verify FFI Setup

Section titled “2. Verify FFI Setup”

Before generating FFI bindings, verify everything is configured:

Terminal window
make verify-ffi

This checks:

  • ✅ Rust toolchain
  • ✅ Flutter SDK
  • ✅ flutter_rust_bridge_codegen
  • ✅ Configuration files
  • ✅ Rust compilation

3. Generate FFI Bindings

Section titled “3. Generate FFI Bindings”
Terminal window
make generate-ffi

This generates:

  • flutter_app/lib/src/rust/api.dart - Dart bindings
  • rust_core/src/api/toss_api.h - C header

4. Build the Project

Section titled “4. Build the Project”
Terminal window
# Build Rust core
make build-rust
# Build Flutter app
make build-flutter
# Or build everything
make build

5. Run the Application

Section titled “5. Run the Application”
Terminal window
# Run Flutter app
make run-flutter
# Or manually
cd flutter_app && flutter run

Development Workflow

Section titled “Development Workflow”

Daily Development

Section titled “Daily Development”
  1. Start Development

    Terminal window
    # Verify setup
    make verify-ffi
    # Generate code (if needed)
    make generate-ffi
    # Run app
    make run-flutter
  2. Make Changes

    • Edit Rust code in rust_core/src/
    • Edit Flutter code in flutter_app/lib/
    • Update FFI API in rust_core/src/api/mod.rs
  3. After Rust API Changes

    Terminal window
    # Regenerate FFI bindings
    make generate-ffi
  4. Test Changes

    Terminal window
    # Run tests
    make test-all
    # Or individually
    make test-rust
    make test-flutter

Code Quality

Section titled “Code Quality”
Terminal window
# Format code
make fmt
# Lint code
make lint
# Run all checks
make check

Project Structure

Section titled “Project Structure”
toss/
├── rust_core/ # Rust core library
│ └── src/
│ ├── api/ # FFI API (mod.rs)
│ ├── clipboard/ # Clipboard operations
│ ├── crypto/ # Encryption
│ ├── network/ # Networking (P2P, Relay)
│ └── storage/ # SQLite storage
├── flutter_app/ # Flutter application
│ └── lib/
│ ├── src/
│ │ ├── core/ # Services, providers
│ │ └── features/ # UI screens
│ └── rust/ # Generated FFI bindings
├── relay_server/ # Relay server (optional)
└── docs/ # Documentation

Common Tasks

Section titled “Common Tasks”

Generate FFI Bindings

Section titled “Generate FFI Bindings”
Terminal window
make generate-ffi

Run Tests

Section titled “Run Tests”
Terminal window
make test-all

Build for Release

Section titled “Build for Release”
Terminal window
make release

Clean Build Artifacts

Section titled “Clean Build Artifacts”
Terminal window
make clean

Troubleshooting

Section titled “Troubleshooting”

FFI Generation Issues

Section titled “FFI Generation Issues”

Problem: flutter_rust_bridge_codegen: command not found

Terminal window
dart pub global activate flutter_rust_bridge_codegen

Problem: Rust compilation errors

Terminal window
cd rust_core && cargo check
# Fix errors shown

Build Issues

Section titled “Build Issues”

Problem: Flutter build fails

Terminal window
cd flutter_app
flutter clean
flutter pub get
flutter build

Problem: Rust build fails

Terminal window
cd rust_core
cargo clean
cargo build

Next Steps

Section titled “Next Steps”
  • Architecture - Understand the system design
  • API Reference - API documentation
  • Platform Support - Platform-specific details
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.