← Back to docs

Core · common

Portal Common — Shared Utilities

Shared utilities used across all Portal crates — error types, test infrastructure, common traits.

portal-commonv0.2.0common
900
Lines of Code
55
Tests
10
Files

Architecture

A small, focused crate with minimal dependencies. Provides the building blocks that other crates need without introducing heavy dependency chains.

Overview

portal-common provides shared infrastructure used by all Portal subsystems. This includes common error types, test helpers, shared traits, and utility functions that don't belong to any single subsystem. It's the foundational dependency that most other Portal crates build on.

Key Types

Result<T>Standard Result type alias used across Portal crates.

Data Flow

Imported by all Portal crates for shared utilities.

Dependencies

External (4)

thiserror workspaceregex 1serde workspacelibc 0.2

Minimal external dependencies by design — other Portal crates depend on this.