1. Choose your release

Download the release package, stardust-<version>.zip, and its .minisig signature. Verify the download with minisign before you extract it. One package serves every platform: each platform's libraries sit in their own directory, lib/<os>_<arch>/, beside one copy of the bindings and examples. Keep the lib/, abi/bindings/, and abi/examples/ directories together, and keep every file in a platform directory together.

PlatformDirectory in lib/Core libraryPlugin libraries
Linuxlinux_amd64, linux_arm64libstardust.solibstardust_<name>.so
macOSdarwin_amd64, darwin_arm64libstardust.dyliblibstardust_<name>.dylib
Windowswindows_amd64stardust.dllstardust_<name>.dll

Each platform directory holds the core library, one plugin library per plugin (see Plugin installation) and the static archive. The bindings and runnable examples are shared by every platform. Each binding calls the same C ABI, which also converts and formats JSON, DUST, EDN and TRON through its parse and serialize operations.

This quickstart uses the shared libraries. Go, Rust, Odin and C programs can instead link the static archive in their platform's directory, which contains the core and every plugin, into one self-contained executable; Linking gives the commands for both modes in each language.

2. Set the library paths and license token

Use a 64-bit runtime or compiler target that matches your release's operating system and CPU.

The packaged examples read your license token from STARDUST_TEST_LICENSE. Set this variable to the contents of your downloaded license file. A file path such as ~/stardust.license causes a malformed license error.

Run the command below in the shell where you will run the example. Replace /path/to/your.license with your downloaded license file's path.

POSIX shell:

sh59 B
export STARDUST_TEST_LICENSE="$(cat /path/to/your.license)"

PowerShell:

text76 B
$env:STARDUST_TEST_LICENSE = (Get-Content -Raw /path/to/your.license).Trim()

Before running a packaged example, set STARDUST_TEST_LICENSE to your downloaded license token.

Use Go 1.26 or newer and a C compiler for your target platform. Put both on PATH. Enable cgo for go build, go run and go test, including static builds. Select GCC or Clang with CC if the default compiler is unavailable. On Windows, use MinGW-w64 GCC or zig cc as CC. Cross-compilation also requires a C compiler and Stardust libraries for the target.

Check the Go configuration:

sh44 B
go version
go env CGO_ENABLED CC GOOS GOARCH

In a POSIX shell, run the packaged example from abi/examples/go:

sh22 B
CGO_ENABLED=1 go run .

In PowerShell, with MinGW-w64 GCC on PATH:

text47 B
$env:CGO_ENABLED = '1'
$env:CC = 'gcc'
go run .

See Linking for your language's build and runtime library setup.

From any packaged example directory (abi/examples/<language>), your platform's library directory is ../../../lib/<os>_<arch>, for example ../../../lib/linux_amd64. Relative paths below assume you run commands from that directory.

Go, Rust and Odin link the library of the platform they build for. Python and Clojure load the library of the platform they run on. Programs that link the shared library find it at run time through the loader variable:

PlatformLoader variableLibrary directory
LinuxLD_LIBRARY_PATH../../../lib/linux_amd64 or ../../../lib/linux_arm64
macOSDYLD_LIBRARY_PATH../../../lib/darwin_amd64 or ../../../lib/darwin_arm64
WindowsPATH../../../lib/windows_amd64

Preserve existing loader entries when adding the directory. Set STARDUST_LIBRARY to a core library file only to load one from somewhere else.

Use the core library from the same release as the binding. The executable PATH is not the shared-library search path on Linux or macOS.

3. Activate the library

Call the binding's activate operation with your license token and check its result before creating resources. How your application gets the token is up to you: load it from a file you ship or deploy, or embed it in the application. A failed activation keeps the current license. The license operation reports the state and failure reason.

Parsing input and creating a builder require an active license. Building expressions or macros, expanding macros, and opening databases also require it. Conversion checks through parsing. Database open checks expiry and plugin permissions. Existing resources keep working after expiry or license replacement.

See Core activation for the complete rules.

4. Run a packaged example

Run each command from the directory shown. Use the bindings included in the same release.

Use the library paths and license token set in step 2. Each packaged example activates the library with that token.

LanguageDirectoryCommand
Goabi/examples/goSet CGO_ENABLED=1, then go run ..
Rustabi/examples/rustcargo run --locked --quiet
Clojureabi/examples/clojureclojure -J--enable-native-access=ALL-UNNAMED -M:run
Pythonabi/examples/pythonpython3 evaluate.py
Odinabi/examples/odinUse the platform command below.

Odin linker setup

Run odin run . from abi/examples/odin. The binding selects the target's library from the release layout. The loader variables above let the example find the shared library when it runs.

For libraries installed elsewhere, supply their directory through linker search flags. On Windows, that directory must contain the stardust.lib import library.

The C reference documents the raw ABI and ownership rules. There is no packaged C application example.

5. Continue with embedded calls

On the following pages, use the language selector to see that binding's code. This tutorial shows verified call fragments; the packaged examples provide runnable programs.

Keep the error checks and handle cleanup when adapting the calls. No server or mounted directory is required.

Read Database for opening options and Ownership for handle lifetimes.