abi

shared

Shared utilities (SIMD, time, sync, security, etc.).

Source: src/services/shared/mod.zig

Availability: Always enabled


API

pub const errors

const source

Error definitions and handling utilities for the ABI framework. Provides standardized error types and conversion functions.

pub const logging

const source

Logging infrastructure with configurable log levels and output destinations. Supports structured logging with context and scoped loggers.

pub const plugins

const source

Plugin registry and lifecycle management. Enables dynamic loading and management of framework extensions.

pub const simd

const source

SIMD (Single Instruction, Multiple Data) vector operations. Provides optimized vector math with automatic fallback to scalar operations when SIMD is not available. Includes dot product, L2 norm, and cosine similarity.

pub const utils

const source

General-purpose utility functions: time, math, string, lifecycle management. See sub-modules for specialized utilities (crypto, encoding, fs, http, json, net).

pub const os

const source

Operating system abstraction layer. Provides platform-independent access to OS features.

pub const app_paths

const source

Cross-platform ABI app path resolver (primary config root).

pub const time

const source

Time utilities compatible with Zig 0.16. Platform-aware implementations for unix timestamps, monotonic clocks, and sleep.

pub const sync

const source

Synchronization primitives compatible with Zig 0.16. Provides Mutex, RwLock, and other concurrency utilities.

pub const io

const source

I/O utilities and helpers for file and stream operations. Designed for Zig 0.16’s explicit I/O backend model.

pub const stub_common

const source

Common stub utilities for feature-disabled builds. Provides consistent error types and placeholder implementations.

pub const matrix

const source

Dense matrix operations with SIMD-accelerated multiply (v2).

pub const tensor

const source

Multi-dimensional tensor operations with broadcasting (v2).

pub const security

const source

Comprehensive security module providing authentication, authorization, and encryption features. Includes:

See security/mod.zig for full API documentation.

pub const resilience

const source

Resilience patterns (circuit breaker, etc.) for fault-tolerant systems. Shared implementations used by network, streaming, and gateway modules.

pub const signal

const source

POSIX signal handling for graceful shutdown. Sets a shared atomic flag on SIGINT/SIGTERM.

pub const log

const source

Log a message at the default scope. Shorthand for logging.log. Usage: log.info("message {}", .{value});

pub const Logger

const source

Scoped logger type for structured logging with context. Create with Logger.init(allocator, .{ .scope = "my_component" }).

pub const vectorAdd

const source

Add two vectors element-wise using SIMD when available. Falls back to scalar operations on platforms without SIMD support.

pub const vectorDot

const source

Compute the dot product of two vectors using SIMD acceleration. Returns the sum of element-wise products: sum(a[i] * b[i]).

pub const vectorL2Norm

const source

Compute the L2 (Euclidean) norm of a vector: sqrt(sum(v[i]^2)). Uses SIMD for efficient computation on large vectors.

pub const cosineSimilarity

const source

Compute cosine similarity between two vectors. Returns a value in [-1, 1] where 1 indicates identical direction. Formula: dot(a, b) / (norm(a) * norm(b))

pub const hasSimdSupport

const source

Check if the current platform supports SIMD operations. Returns true if hardware SIMD is available and enabled.

pub const SimpleModuleLifecycle

const source

Simple module lifecycle management with init/deinit callbacks. Tracks initialization state and prevents double-init/deinit.

Example:

var lifecycle = SimpleModuleLifecycle{};
try lifecycle.init(myInitFn);
defer lifecycle.deinit(myDeinitFn);

pub const LifecycleError

const source

Errors that can occur during module lifecycle operations.


Generated automatically by zig build gendocs

Zig Skill

Use the $zig Codex skill for ABI Zig 0.16-dev syntax updates, modular build graph guidance, and targeted validation workflows.