Getting Started
This guide covers system requirements, building and launching deccy-gui, how it locates your deccy CLI executable, and what happens when you open a directory.
Prerequisites
- Rust Toolchain — A current stable Rust toolchain (
cargoandrustc). - Platform Graphics Dependencies:
- macOS: Xcode and the Metal toolchain are required to compile the GPU shaders used by the UI framework. Install the Metal component once and verify it:
xcodebuild -downloadComponent MetalToolchain xcrun metal --version
- macOS: Xcode and the Metal toolchain are required to compile the GPU shaders used by the UI framework. Install the Metal component once and verify it:
deccyCLI Binary —deccy-guiinvokes thedeccyexecutable for store validation, repinning, and claim refreshes. Ensuredeccyis installed on yourPATH(for example, viacargo install --path ../deccy-cli-exp) or point to it explicitly with--deccy-binor$DECCY_BIN.
Note: The first build compiles roughly 700 crates and typically takes 5–10 minutes. Subsequent incremental builds complete in a few seconds.
Building and Running
Run directly from a source checkout with Cargo, or install the binary:
# Open the current directory (default PATH is .)
cargo run --
# Open a specific store directory
cargo run -- /path/to/store
# Build an optimized release binary
cargo build --release
./target/release/deccy-gui /path/to/store
Command-Line Interface
deccy-gui --help (or -h) prints:
usage: deccy-gui [PATH] [--deccy-bin PATH] [--help] [--version]
PATH store directory (default: .)
--deccy-bin deccy CLI to use for actions (overrides $DECCY_BIN)
Arguments and Flags
| Argument / Flag | Description |
|---|---|
PATH | Optional path to the directory containing .deccy/. Defaults to . (the current directory). At most one PATH is accepted. |
--deccy-bin PATH | Path to the deccy CLI executable to run when triggering actions in the UI. Overrides $DECCY_BIN and $PATH. |
-h, --help | Print usage information and exit 0. |
-V, --version | Print the version string (deccy-gui 0.0.0) and exit 0. |
Passing an unknown flag, passing --deccy-bin without a value, or supplying more than one positional PATH prints the usage message to stderr and exits with code 2.
deccy CLI Discovery
At startup, deccy-gui searches once for a deccy executable in the following order:
- The path passed to
--deccy-bin PATH. - The path in the
DECCY_BINenvironment variable. - The first executable file named
deccyfound onPATH.
Every candidate must be an existing executable file (directories and non-executable files are skipped). deccy-gui never guesses relative source-tree build paths.
If no deccy binary is found:
- The window still opens and renders the store normally.
- All CLI action buttons in the
Detailstab are disabled. - Both the
Actionssection and the bottom feedback bar display:deccy binary not found; set DECCY_BIN
Opening a Store
When deccy-gui opens a directory:
- Window Title: Set to
deccy-gui — <store basename>. - Toolbar Label: Displays
<parent>/<store basename>(for example,verrific/deccy-new) next todeccy-guiso you can distinguish stores with similar directory names. - Initial Viewport: On the first successful load, the graph automatically zooms and pans to fit the center pane.
Missing or Uninitialized Stores
If the target directory does not contain a readable .deccy/nodes directory, deccy-gui opens in an empty refusal state rather than exiting:
- The center pane displays the CLI refusal reason and evidence in red monospace text, followed by:
rundeccy initin this directory to create a store - You can initialize the store right away by opening the built-in terminal drawer (
⌃``), runningdeccy init, and pressingr(or clickingreload`).