Documentation
¶
Overview ¶
Command check-abi-symbols verifies the purego bindings in internal/ffi against the lance-c C header from the commit pinned in that package.
The header is not vendored. Export it from the pinned upstream checkout:
git -C /path/to/lance-c show e2564b89be36bb18f5beff6d673daf9dfff8c986:include/lance/lance.h > lance.h LANCE_C_HEADER=./lance.h go run ./scripts/check-abi-symbols.go
It checks that every bound symbol exists, that Go and C agree on arity and on value/pointer classification, that every function field in the bindings struct has a symbol entry, and that the header bytes match the pinned SHA-256. It cannot detect a same-size integer type confusion beyond the signed and unsigned integer classes it models.
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
artifactgen
Package artifactgen builds a data-only Go module and a platform selector from an already-built lance-c shared library and its matching header.
|
Package artifactgen builds a data-only Go module and a platform selector from an already-built lance-c shared library and its matching header. |
|
public-consumer
|
|
|
namespace-consumer
command
Command namespace-consumer opens a native directory namespace without importing the root lance-go package.
|
Command namespace-consumer opens a native directory namespace without importing the root lance-go package. |
|
windows-consumer
command
Command windows-consumer loads the public namespace API and reports the native module that the process actually mapped.
|
Command windows-consumer loads the public namespace API and reports the native module that the process actually mapped. |
|
Command verify-lance-c-artifact verifies one generated lance-c artifact module against the native library it was packaged from and the pin in internal/ffi/upstream.go.
|
Command verify-lance-c-artifact verifies one generated lance-c artifact module against the native library it was packaged from and the pin in internal/ffi/upstream.go. |