Skip to content

Conversation

SamWilsn
Copy link
Contributor

@SamWilsn SamWilsn commented Sep 4, 2025

Proposed Changes

Patch leveldb-sys with the one from this pull request.

Additional Info

This commit grabs a version of leveldb-sys that:

  • Replaces snappy and leveldb with submodules (and updates to the latest releases).
  • Rewrites the CI workflow to be more modern.
  • Allows linking against the system version of leveldb and snappy by setting LEVELDB_NO_VENDOR=1.
  • Hopefully resolves a linking issue when using the vendored snappy.

This commit grabs a version of leveldb-sys that:

 - Replaces snappy and leveldb with submodules.
 - Rewrites the CI workflow to be more modern.
 - Allows linking against the system version of leveldb and snappy by
   setting `LEVELDB_NO_VENDOR=1`.
 - Hopefully resolves a linking issue when using the vendored snappy.
@michaelsproul
Copy link
Member

I think the leveldb crates are basically unmaintained, so we might need our own fork if we want this

@SamWilsn
Copy link
Contributor Author

SamWilsn commented Sep 5, 2025

Yeah, I saw that your PR fixing paths with spaces has been sitting around for a while. What's your vibe on this? leveldb (minus snappy) isn't too broken as far as you're concerned, so I'd understand your reluctance to add this just for my packaging purposes.

@michaelsproul
Copy link
Member

Yeah I think my preference is to continue building LH against stock LevelDB, just with snappy disabled. Do you want snappy working just for the sake of completeness in packaging? Would it be much of a loss if the package just didn't offer snappy support?

@SamWilsn
Copy link
Contributor Author

SamWilsn commented Sep 5, 2025

Fixing snappy was just a bonus. I'm only interested in LEVELDB_NO_VENDOR, but I can work around not having it.

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