Skip to content

Getting Started

Get up and running with Trusted Server quickly.

Prerequisites

Before you begin, ensure you have the following installed (versions are pinned in .tool-versions):

  • Rust 1.95.0
  • NodeJS 24.12.0
  • Fastly 15.1.0 CLI installed
  • A Fastly account and API key
  • Basic familiarity with WebAssembly

Installation

Clone the Repository

bash
git clone https://github.com/IABTechLab/trusted-server.git
cd trusted-server

Fastly CLI Setup

Install and configure the Fastly CLI using the Fastly setup guide.

Install Viceroy (Test Runtime)

bash
cargo install viceroy --version 0.17.0 --locked --force

Local Development

Build the Project

bash
cargo build

Run Tests

bash
cargo test

Start Local Server

bash
fastly compute serve

The server will be available at http://localhost:7676.

Configuration

Edit trusted-server.toml to configure:

  • Ad server integrations
  • KV store mappings
  • EC configuration
  • GDPR settings

See Configuration for details.

Deploy to Fastly

bash
fastly compute publish

Next Steps

Released under the Apache License 2.0.