StringZilla icon indicating copy to clipboard operation
StringZilla copied to clipboard

Quick-start instructions for C++, Rust, and Swift

Open Tafnab opened this issue 1 year ago • 4 comments

On Debian 12, cmake v. 3.25.1, builds fine. Passes all tests.

However, the make file appears to be useless so far as installing for C/C++ goes.
Having a small section detailing the purpose of the CMakeLists.txt, and how to install for each supported language would clear things up.

Tafnab avatar Mar 25 '24 19:03 Tafnab

Hi @Tafnab! Which Makefile are you referring to?

You can find build instructions for different environments in CONTRIBUTING.md. But if you need just the library itself, in Rust - you add a Crate dependency, and in Swift- you use the Swift Package Manager, which links directly to GitHub. Feel free to patch the README.md if you think it's worth clarifying those details further 🤗

ashvardanian avatar Mar 25 '24 22:03 ashvardanian

Based on what I've seen, the cmake file is only used to build the benchmarks. For C/C++ installation, just copy the include/stringzilla/* to /usr/include/stringzilla. I'm not sure where ./c/lib.c should go on the system. Shouldn't is also go to /usr/include/stringzilla? Since a number of people just want to try out your project, I expect this would be appreciated.

So far as I can tell, when using c/lib.c, you don't need to link against a library.

I would expect that instructions for python, swift, and rust would also be appreciated. I can't write them, because I don't use those languages and don't really know what you have in mind for installation.

Tafnab avatar Mar 26 '24 22:03 Tafnab

:tada: This issue has been resolved in version 3.8.2 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

ashvardanian avatar Apr 19 '24 05:04 ashvardanian

For C and C++ I still have a CMake script to refactor, so reopening 🤗

ashvardanian avatar Apr 19 '24 05:04 ashvardanian