C+
Archived manual for C+ v0.0.28. Read the current manual (v0.0.30)
Packages · View as Markdown

Packages

Packages are directories with a Cplus.toml, source modules, and optional tests, documentation, link metadata, and platform variants. Add a package with cpc pm add; see Modules and packages and Package manager for resolution and manifest rules.

Core library and data

  • stdlib — collections, text, I/O, concurrency, async runtime pieces, files, networking, and platform shims.
  • json — JSON parsing and serialization.
  • sqlite — Connection and Statement; raw bindings are available as sqlite/raw.
  • arena — growable bump allocator.
  • static_arena — fixed-capacity allocator stored in the value itself, with no heap allocation.
  • uuid and log — identifiers and structured logging.

Facet applications

  • facet — platform-neutral UI tree, elements, components, screens, services, and navigation vocabulary.
  • facet_runtime — application entry point, named windows, routes, history, and backend installation.
  • facet_appkit — macOS backend.
  • facet_uikit — iOS backend.
  • facet_android — Android backend.
  • facet_gtk — GTK 4 backend for Linux.
  • facet_win32 — native Win32 backend.
  • flex_layout — shared Flexbox and Grid layout engine.
  • inspector — mounted-tree inspection and editing for development.

Agent surface

See Agent surface for the shared authorization model.

Native capabilities

Each package page records its platform coverage and explicit unsupported outcomes.

Platform bindings

Numerics, GPU, and AI

Real-time

  • rt — fixed pools, rings, and other primitives used with the compiler's real-time contracts.
  • rt_darwin — Darwin-specific real-time support.

Filter all 83 packages

accelerate Apple

Bindings to Apple's Accelerate.framework: pre-tuned CPU numerics (BLAS via cblas, element-wise and reductions via v_dsp) that ship in every macOS binary.

appkit Apple

Typed Cocoa / AppKit bindings for native macOS desktop apps: application lifecycle, windows, views, controls, and closure-free callbacks.

cblas GPU & AI

Reference CBLAS bindings (OpenBLAS / Netlib / MKL): the cross-platform CPU BLAS path. Level 1/2/3 routines — sdot, saxpy, sscal, snrm2, sasum, sgemv, sgemm, and d-variants — with typed Order and Transpose enums.

coreai Apple

A Swift bridge to Apple's CoreAI, adapted to the real API on Xcode 27 / macOS 27.

cuda GPU & AI

Typed CUDA Runtime + cuBLAS bindings for NVIDIA GPUs: device management, Drop-managed DeviceBuffer (cudaFree) and cuBLAS Handle (cublasDestroy_v2), and column-major sgemm / sgemv. Plain C FFI, no kernel language.

jni Android

Java Native Interface bindings: #[repr(C)] mirrors of the JVM dispatch tables covering the full JNI 1.6 function table, called through a function-pointer table exactly as C's JNI does.

metal GPU & AI

Typed Metal bindings for Apple GPU compute: devices, command queues, buffers, libraries, functions, and compute pipeline state, generated over Apple's Metal framework.

agent_android Android

C+ v0.0.28 package reference for agent_android.

agent_appkit Apple

The macOS AppKit backend for the C+ agent surface, including live NSView walking, grant-aware actions, sensitivity policy, events, and the backend-neutral MCP vtable.

agent_core Agent

C+ v0.0.28 package documentation for agent_core.

agent_gtk Linux / GTK

The GTK 4 backend for the C+ agent surface on Linux: live widget-tree walking, grants, sensitivity policy, actions, events, and the common MCP vtable.

agent_inapp Agent

Transport-free access to a live agent backend for an assistant embedded in a C+ application, with a fixed capability grant per session.

agent_jwt Agent

C+ v0.0.28 package documentation for agent_jwt.

agent_mcp Agent

C+ v0.0.28 package documentation for agent_mcp.

agent_uikit Apple

C+ v0.0.28 package reference for agent_uikit.

agent_win32 Windows

The Win32 backend for the C+ agent surface on Windows: live HWND walking, grants, sensitivity policy, actions, events, and the common MCP vtable.

android_view Android

C+ v0.0.28 package documentation for android_view.

applinks Cross-platform

C+ v0.0.28 package documentation for applinks.

arena Cross-platform

C+ v0.0.28 package documentation for arena.

avfoundation Apple

C+ v0.0.28 package reference for avfoundation.

biometrics Cross-platform

C+ v0.0.28 package documentation for biometrics.

cairo Linux / GTK

C+ v0.0.28 package reference for cairo.

camera Cross-platform

C+ v0.0.28 package documentation for camera.

corelocation Apple

C+ v0.0.28 package reference for corelocation.

coreml Apple

C+ v0.0.28 package reference for coreml.

coremotion Apple

C+ v0.0.28 package reference for coremotion.

espidf Cross-platform

C+ v0.0.28 package documentation for espidf.

events Cross-platform

C+ v0.0.28 package documentation for events.

facet Facet UI

C+ v0.0.28 package documentation for facet.

facet_agent Facet UI

C+ v0.0.28 package documentation for facet_agent.

facet_android Android

C+ v0.0.28 package reference for facet_android.

facet_appkit Apple

C+ v0.0.28 package documentation for facet_appkit.

facet_gtk Linux / GTK

C+ v0.0.28 package documentation for facet_gtk.

facet_runtime Facet UI

C+ v0.0.28 package documentation for facet_runtime.

facet_uikit Apple

C+ v0.0.28 package documentation for facet_uikit.

facet_win32 Windows

C+ v0.0.28 package documentation for facet_win32.

filepicker Cross-platform

C+ v0.0.28 package documentation for filepicker.

flex_layout Facet UI

C+ v0.0.28 package documentation for flex_layout.

foundation Apple

C+ v0.0.28 package reference for foundation.

fswatch Cross-platform

C+ v0.0.28 package documentation for fswatch.

gdk Linux / GTK

C+ v0.0.28 package reference for gdk.

gdkpixbuf Linux / GTK

C+ v0.0.28 package reference for gdkpixbuf.

gio Linux / GTK

C+ v0.0.28 package reference for gio.

glib Linux / GTK

C+ v0.0.28 package reference for glib.

gmodule Linux / GTK

C+ v0.0.28 package reference for gmodule.

gobject Linux / GTK

C+ v0.0.28 package documentation for gobject.

gobject_gir Linux / GTK

C+ v0.0.28 package reference for gobject_gir.

graphene Linux / GTK

C+ v0.0.28 package reference for graphene.

gsk Linux / GTK

C+ v0.0.28 package reference for gsk.

gtk4 Linux / GTK

C+ v0.0.28 package reference for gtk4.

haptics Cross-platform

C+ v0.0.28 package documentation for haptics.

harfbuzz Linux / GTK

C+ v0.0.28 package reference for harfbuzz.

http Cross-platform

C+ v0.0.28 package documentation for http.

inspector Facet UI

C+ v0.0.28 package documentation for inspector.

json Cross-platform

C+ v0.0.28 package documentation for json.

llama_cpp GPU & AI

C+ v0.0.28 package documentation for llama_cpp.

localauthentication Apple

C+ v0.0.28 package reference for localauthentication.

location Cross-platform

C+ v0.0.28 package documentation for location.

log Cross-platform

C+ v0.0.28 package documentation for log.

mapkit Apple

C+ v0.0.28 package reference for mapkit.

notifications Cross-platform

C+ v0.0.28 package documentation for notifications.

objc Apple

C+ v0.0.28 package documentation for objc.

pango Linux / GTK

C+ v0.0.28 package reference for pango.

pangocairo Linux / GTK

C+ v0.0.28 package reference for pangocairo.

permissions Cross-platform

C+ v0.0.28 package documentation for permissions.

rt Cross-platform

C+ v0.0.28 package documentation for rt.

rt_darwin Apple

C+ v0.0.28 package documentation for rt_darwin.

securestore Cross-platform

C+ v0.0.28 package documentation for securestore.

sensors Cross-platform

C+ v0.0.28 package documentation for sensors.

share Cross-platform

C+ v0.0.28 package documentation for share.

simd GPU & AI

C+ v0.0.28 package documentation for simd.

sqlite Cross-platform

C+ v0.0.28 package documentation for sqlite.

static_arena Cross-platform

C+ v0.0.28 package documentation for static_arena.

stdlib Cross-platform

C+ v0.0.28 package documentation for stdlib.

terminal Cross-platform

C+ v0.0.28 package documentation for terminal.

uuid Cross-platform

C+ v0.0.28 package documentation for uuid.

vision Apple

C+ v0.0.28 package reference for vision.

webkit Apple

C+ v0.0.28 package reference for webkit.

win32 Windows

C+ v0.0.28 package documentation for win32.

uikit Apple

Typed UIKit bindings for native iOS apps, mirroring vendor/appkit: windows, view controllers, controls, text, containers, data views, graphics, Auto Layout, and app-delegate synthesis, with the cplus_app_main entry convention.

gtk4 Linux / GTK

Generated GTK 4 bindings from GObject Introspection: Application, widgets, and the rest of the Gtk-4.0 namespace as one module.

adwaita Linux / GTK

Generated libadwaita 1 bindings over gtk4: Application, ApplicationWindow, and the Adw-* widget set from Adw-1.gir.

quartzcore Apple

Generated QuartzCore / Core Animation bindings: CALayer so NSView.layer() is a typed object, not a stub.