Documentation
33 documentation pages
- DocumentationCabin Docs Cabin is a Cargo-inspired package manager and build system for C and C++. It treats C/C++ as first-class siblings: a single project can mix .c and .cc translation units, the C/C++ ...
- InstallationInstallation Supported Operating Systems Linux (GCC / Clang) macOS (Clang / Apple Clang) Windows (MSVC - cl.exe / lib.exe; MinGW-w64 GCC with --target x86_64-w64-mingw32) On Windows the default ...
- Cargo-inspired interfaceCargo-inspired interface Cabin is Cargo-inspired, not Cargo-compatible. The interface borrows Cargo's vocabulary where the semantics line up - so a Cargo user picks Cabin up quickly - and ...
- Creating a new packagecabin new and cabin init cabin new and cabin init generate a minimal single-package project layout: a cabin.toml, a src/ tree, a public header tree (library scaffolds only), and a .gitignore. Both ...
- cabin.toml referencecabin.toml Reference This document describes the cabin.toml schema currently understood by the manifest parser, the workspace loader, the build planner, the resolver, and the artifact layer. Registry ...
- Configuration filesConfiguration files Cabin reads typed TOML configuration files for local policy - defaults the user, the workspace, or a single project want to apply across many invocations of cabin build, cabin ...
- Environment variablesEnvironment variables This page lists every runtime CABIN_* environment variable Cabin reads, the small fixed set Cabin sets on a child process (cabin run / cabin test), and the precedence chain for ...
- Build profilesBuild profiles A profile is a named preset of compile-time settings - debug information, optimization level, assertions - that Cabin applies to a build. Profiles formalize the long-standing ...
- Language standardsLanguage standards Cabin treats C and C++ language standards as typed build metadata: you declare them in cabin.toml, and Cabin lowers them to the dialect-correct compiler flag, validates that the ...
- ToolchainsToolchains and conditional build flags Cabin builds C/C++ packages with three external tools: a C compiler, a C++ compiler driver, and a static-library archiver. Cabin makes the choice of those ...
- TargetsTargets A target is one buildable unit declared inside a Cabin package. A package may declare any number of targets; each target has a [target.<name>] table with at least a type and usually a sources ...
- CheckingChecking for errors with cabin check cabin check type-checks a package's C/C++ sources without producing object files or binaries. It is Cabin's analogue of cargo check: it reuses the exact same ...
- Compiler wrappersCompiler wrappers Cabin can prefix every C and C++ compile command with an executable such as ccache, sccache, or icecc. The wrapper sits in front of the selected compiler: <compiler-wrapper> ...
- TestingTesting with cabin test cabin test is a small wrapper around the existing build pipeline: it builds the selected test targets, runs each linked executable in deterministic order, and reports a ...
- FormattingFormatting C/C++ sources (cabin fmt) cabin fmt is Cabin's wrapper around clang-format. It walks the selected package(s) for C/C++ source and header files, hands them to clang-format, and either ...
- Static analysisStatic analysis with clang-tidy (cabin tidy) cabin tidy is Cabin's wrapper around run-clang-tidy, the standard LLVM driver that fans clang-tidy invocations out across a Clang JSON compilation ...
- Dependency kindsDependency kinds Cabin classifies every dependency into one of three kinds, each declared under its own manifest section: Section Kind What it means [dependencies] normal Linked into ordinary builds. ...
- System dependenciesSystem dependencies System dependencies are external libraries that Cabin does not fetch, build, or install. Users provide them through their OS package manager (or any other local installation ...
- Target / platform-specific dependenciesTarget / platform-specific dependencies Cabin supports declaring a dependency only for a particular platform via [target.'cfg(...)'.<kind>] tables in cabin.toml. The shape mirrors Cargo's syntax so ...
- FeaturesFeatures Cabin features are public, additive, named-boolean capabilities the user (or a downstream consumer) selects at build time. Features may imply other features and may enable optional ...
- cabin.lock referencecabin.lock Reference Cabin uses a deterministic on-disk lockfile that records the package versions chosen by the resolver. Artifact fetching reuses the same schema: the recorded checksum selects ...
- Patch, override, and source replacementPatch, override, and source replacement Cabin's typed local-policy layer lets a developer or workspace swap a registry-resolved package for a local working copy (patches) and redirect one supported ...
- Vendoring and offline modeVendoring and offline mode cabin vendor materializes the external versioned dependencies the selected packages need into a deterministic local file-registry directory. The output is an ordinary Cabin ...
- Source artifactsSource Artifacts Cabin source-artifact fetching takes a resolved package set plus an index that points at source archives. It verifies SHA-256 checksums, copies archives into a checksum-addressed ...
- Foundation portsFoundation ports Foundation ports are curated packages that adapt important existing C/C++ libraries - libraries that do not yet ship a native cabin.toml - to Cabin's build model. Their sources live ...
- WorkspacesWorkspaces Cabin treats a workspace as a package graph rooted at one cabin.toml that declares a [workspace] table. The root manifest may itself be a package ([package] is allowed alongside ...
- Metadata, tree, and explainMetadata, tree, and explain Cabin gives you three complementary observability commands for the loaded workspace state: cabin metadata - full deterministic JSON document covering workspace, packages, ...
- PerformancePerformance How to see where a Cabin command spends its time, measure it reproducibly, and catch regressions: trace capture, the cargo perf benchmarks, and profiling. Capturing a trace Set ...
- Package archive and canonical metadataPackage Archive And Canonical Metadata cabin package and cabin publish --dry-run run the same staging pipeline: Validate the package's cabin.toml. Walk the source tree under the include / exclude ...
- Local JSON package indexLocal JSON Package Index Cabin resolves versioned dependencies against a tiny on-disk JSON index. This is not a real registry - it has no network protocol, no append-only structure, and no signing. ...
- Registry interfaceRegistry Interface This repository contains the local registry interface used by Cabin's public OSS core: a deterministic local JSON package index; a local file-registry write path for cabin publish ...
- Remote registry protocolRemote Registry Protocol The hosted registry is in private alpha. registry.cabinpkg.com - foundation ports included - is restricted to its maintainer and the repository automation that account backs; ...
- CLI distribution artifactsCLI distribution artifacts Cabin ships two CLI subcommands that emit artifacts package managers usually want: cabin compgen - shell completion scripts (bash, zsh, fish, powershell, elvish); cabin ...