farsightsec / mtbl

immutable sorted string table library
Apache License 2.0
80 stars 14 forks source link

Almagated sources #54

Open Kerollmops opened 4 years ago

Kerollmops commented 4 years ago

Hello,

I am currently working on making bindings to the mtbl library in Rust, there already is an existing binding library but it does need the mtbl library installed by an external package manager, I would like to have the sources directly inside of the crate itself, this way there will not be bindings compatibilty issues nor missing dependencies.

Is there a way to get the almagated sources, this way I will be able to ship those with the crate itself? Is the tarball in the releases what I want?

I also saw that the mtbl library requires a lot of compression libraries to compile (i.e. lz4, zstd, zlib, snappy) even if the user will only want to use one of those, is there a way to specify that and be able to compile with only one or none of the compression features?

Thank you for your work!

cmikk commented 4 years ago

The release tarballs should be sufficient for distribution with the crate.

As for the compression libraries, we currently do not have a way to compile without all defined compression methods, but will consider it for a future release.