Versioning and ABI
The C binding has its own release line. That line is independent of the
lancedb Rust SDK version it pins, and independent of the Cargo package
version in Cargo.toml. The binding pins the newest stable lancedb crate
from crates.io with an exact version. Release notes identify the locked SDK
and Lance crate versions and checksums.
Version sources
The release version comes from the Git tag. Tags use strict SemVer with a v
prefix, for example v0.1.0 or v0.1.0-preview.2. The Cargo package
version is fixed at 0.0.0 for the unpublished crate.
The public header exposes:
LANCEDB_VERSION_MAJOR
LANCEDB_VERSION_MINOR
LANCEDB_VERSION_PATCH
LANCEDB_VERSION_STRING
LANCEDB_VERSION /* alias for LANCEDB_VERSION_STRING */
lancedb_version() returns the version embedded in the loaded library as a
static, NUL-terminated string owned by the library. The caller must not free it.
The function is declared in the binding version group.
The checked-in include/lancedb.h reports 0.0.0-dev so it remains usable
directly without a generated file. CMake renders the installed header with the
configure-time version, and the package builder renders the same block for
release archives. Header, runtime string and package manifest therefore agree
for a package built from the same source.
A direct cargo build uses the same LANCEDB_VERSION override or exact-tag
resolution for the runtime string, and falls back to 0.0.0-dev when no tag is
present. Use the CMake-installed or package-rendered header when a tagged direct
Cargo build needs compile-time macros that match the runtime; the checked-in
header deliberately stays at the development default.
Compatibility policy
Before 1.0, the C ABI may change incompatibly. A change that breaks source or binary compatibility bumps the minor version, and the release notes tell C and C++ callers what to change and that they must recompile against the published header. Preview releases make no long-term C ABI promise.
From 1.0 onward, add new functions and enum values without changing existing declarations. Adding a field to an existing public struct changes its size and layout and is a breaking ABI change. Changing a function signature, an existing enum value or documented behavior also requires a major version.
CMake shared-library builds from this revision, and release packages from
v0.1.0-preview.2 onward, use this metadata:
On Linux, before 1.0 the SONAME is
liblancedb.so.<major>.<minor>; from 1.0 it isliblancedb.so.<major>. The unversionedliblancedb.solinker name remains available beside it.On macOS, the install name is
@rpath/liblancedb.dylib.On Windows, consumers link through
lancedb.dll.lib(MSVC) or the GNU import library. Use the installed CMake target rather than relying on a library-name spelling.
Published packages
The package workflow publishes five native targets: linux-amd64,
linux-arm64, darwin-arm64 (Apple Silicon), windows-amd64 and
windows-arm64. Intel macOS is not supported.
Each archive is named lancedb-c-<commit>-<target>.tar.gz and contains:
LICENSEinclude/lancedb.hrendered with the release versionthe target shared library, with the Linux SONAME and unversioned alias from
v0.1.0-preview.2onward, and the MSVC import library on Windowsmanifest.jsonSHA256SUMScovering the package contents
The v0.1.0-preview.1 Linux archive predates the SONAME rule and contains
only the unversioned liblancedb.so. The archive has a sibling .sha256
file, and the release includes a combined SHA256SUMS.
A prebuilt archive does not contain the CMake package config or pkg-config
file that a source install provides, so it does not support
find_package(lancedb) or pkg-config directly. A source install can
produce a shared or static library; the export allowlist above applies only to
its shared library. The manifest is the machine-readable contract for
downstream loaders:
Field |
Meaning |
|---|---|
|
Manifest schema version, currently |
|
Package name, |
|
Tag-derived binding version |
|
Go-style |
|
Rust target triple used to build the library |
|
Packaged commit |
|
Package-relative shared-library path |
|
Package-relative public header path |
|
Package-relative import library, or |
|
Package-relative license path |
|
Map from crate name to locked |
The release page is the authoritative record of a published version. It names the tag ref object, peeled commit, pinned LanceDB and Lance crates, and every archive digest. See the LanceDB C releases for the current list.
The release PR tests the final version before the tag exists. After merge, the workflow binds the verified archives to the tag’s peeled commit. The release notes link the tested integration commit and package CI run. A stable tag becomes the Latest release and a tag with a prerelease suffix becomes a GitHub prerelease. Stable releases require a maintainer decision. Published releases are immutable under the release workflow.