LibAFL icon indicating copy to clipboard operation
LibAFL copied to clipboard

Publish `libafl_nyx` on crates.io

Open nathaniel-bennett opened this issue 9 months ago • 3 comments

I've been working on developing a library that builds upon libafl_nyx. I've noticed that it isn't published on crates.io at all; this makes it difficult to work with when I'm pulling other libraries in that build upon libafl but reference the crates.io version, not the git version. The current fix (changing dependencies all to git) would constitute traversing dependencies I'm pulling in and patching their sources, which isn't the most ideal solution.

Can libafl_nyx be published on crates.io, or are there technical hurdles preventing such? I realize it has a lot of moving parts in its build system and packer to make everything work right; I just wanted to make sure there wasn't an easy publish that could happen before I go ahead with switching all my dependencies to the libAFL git repo.

nathaniel-bennett avatar May 11 '25 05:05 nathaniel-bennett

I do think it is accidentally missing due to the script here: https://github.com/AFLplusplus/LibAFL/blob/main/scripts/publish.sh

Also I think we should migrate to https://github.com/crate-ci/cargo-release which deals well with workspace crates.

wtdcode avatar May 11 '25 10:05 wtdcode

I think I've discovered the underlying reason--the libnyx crate isn't currently published on crates.io. Since it's a dependency of libafl_nyx, that means that it can't be published yet until libnyx is.

nathaniel-bennett avatar May 16 '25 07:05 nathaniel-bennett

I published them there: https://crates.io/search?q=libnyx by https://github.com/nyx-fuzz/libnyx/pull/34

wtdcode avatar May 23 '25 15:05 wtdcode