Skip to content

Bundle NumKong runtime with C# native artifacts - #766

Merged
ashvardanian merged 1 commit into
unum-cloud:main-devfrom
sergey-v9:numkong-native-nuget-artifacts
May 28, 2026
Merged

Bundle NumKong runtime with C# native artifacts#766
ashvardanian merged 1 commit into
unum-cloud:main-devfrom
sergey-v9:numkong-native-nuget-artifacts

Conversation

@sergey-v9

Copy link
Copy Markdown
Contributor

Summary

This updates the C# native build and packaging flow for USearch v2.25, where NumKong is now a separate runtime library instead of being embedded into libusearch_c.

Changes include:

  • Build Windows C# native artifacts with USEARCH_USE_NUMKONG=1.
  • Copy libnumkong.so, libnumkong.dylib, and numkong.dll alongside libusearch_c.
  • Add loader/RPATH handling so libusearch_c can find NumKong at runtime.
  • Add native runtime asset tests to catch missing bundled dependencies.

Validation

  • Built usearch_c locally with NumKong enabled on Windows.
  • Confirmed libusearch_c.dll depends on numkong.dll via dumpbin.

@ashvardanian

Copy link
Copy Markdown
Member

This looks very clean, thank you @sergey-v9!

@ashvardanian
ashvardanian merged commit 9c0ed29 into unum-cloud:main-dev May 28, 2026
31 of 32 checks passed
@sergey-v9

Copy link
Copy Markdown
Contributor Author

@ashvardanian Would you mind to release a new version with that changes, so we can consume the package fom a NuGet feed?

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