Skip to content

GNUInstallDirs, install targets, and nix refinement - #800

Merged
ashvardanian merged 3 commits into
unum-cloud:main-devfrom
jonringer:jonringer/gnu-install-dirs
Oct 18, 2026
Merged

ashvardanian merged 3 commits into
unum-cloud:main-devfrom
jonringer:jonringer/gnu-install-dirs

Conversation

@jonringer

Copy link
Copy Markdown
Contributor

Noticed some installation pain in ekala-project/ekapkgs#67 (comment)

Replace hardcoded install paths with GNUInstallDirs variables for
compatibility with Nix and other non-standard prefix layouts.
Add standard prefix/includedir variables to the .pc template and
switch to @only so ${includedir} is preserved as a pkg-config variable.
Comment thread cmake/pkg-config.pc.in
Comment on lines +1 to +2
prefix=@CMAKE_INSTALL_PREFIX@
includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

be happy to remove this and just inline includedir if needed

Allows `cmake --install` to place libusearch_c, libusearch_static_c,
and usearch.h into the correct GNUInstallDirs locations, removing the
need for manual install steps in packaging scripts.

Co-authored-by: Ash Vardanian <[email protected]>
@ashvardanian
ashvardanian force-pushed the jonringer/gnu-install-dirs branch from 3d5ed71 to 607c445 Compare October 18, 2026 15:57
@ashvardanian
ashvardanian changed the base branch from main to main-dev October 18, 2026 18:30
@ashvardanian
ashvardanian force-pushed the jonringer/gnu-install-dirs branch from 607c445 to 5fc73f0 Compare October 18, 2026 18:33
@ashvardanian
ashvardanian merged commit 4160e47 into unum-cloud:main-dev Oct 18, 2026
@jonringer
jonringer deleted the jonringer/gnu-install-dirs branch October 18, 2026 19:25
xet7 pushed a commit to xet7/usearch that referenced this pull request Nov 12, 2026
The 2.x line released v2.25.2 through v2.26.6 after 3.0 branched at
v2.25.1, and its public main ends at 33d3ab6. Installs place headers
under GNUInstallDirs' include directory (14f9807, unum-cloud#800), the README
lists the integrations 2.x added (0fd2f32, unum-cloud#795), and CONTRIBUTING
states the commit conventions in place of stale links (06ad060, unum-cloud#748).

Its correctness fixes already hold on 3.0's code:

- Keys move with their entries when `compact` permutes slots
  (0a4baa6, unum-cloud#795), and the insert-only key table never rehashes
  (1633e25, unum-cloud#822; 9d77be5, unum-cloud#759)
- File loads bound every column slice from the header (9c25176, unum-cloud#824;
  64d10d8, unum-cloud#776), and allocation sizes are checked (89da7c5, unum-cloud#763)
- JavaScript keys are range-checked (b65a420, unum-cloud#812), Go filters ride
  `cgo.Handle`s (ad77fe7, unum-cloud#825), `splitmix64_t` survives `windows.h`
  (0f1c5f2, unum-cloud#806), and integer key hashes mix with SplitMix64
  (9fc3500, unum-cloud#773)
- C install targets and relocatable pkg-config (4160e47, 679e190,
  unum-cloud#800), the GIL released in long calls (d8be67d, unum-cloud#764), and graph
  cursors in C and Rust (55c43f7, unum-cloud#748)

Thread-context reserves, tombstones, renames, `change_metric`, OpenMP
metrics and hand-written BF16 casts are absent from 3.0, so their
fixes have nothing to land on. The Rust `compact()` binding (749d03b,
unum-cloud#771) waits for all bindings to wrap `usearch_dense_compact`.

The README's performance lead now quotes the SIFT 100M rows at 99%
recall on a B300 and on 192 Graviton5 cores beside FAISS HNSW, and
the verification notes link ForkUnion's `main`.

The sibling pins move to the libraries' own merges with their released
lines, so this line builds against them.

Co-Authored-By: Jonathan Ringer <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants