Giter VIP home page Giter VIP logo

Comments (7)

spacejam avatar spacejam commented on May 27, 2024

I'm in favor of exposing rocksdb::ffi as public. Historically I've hit a number of annoying issues with wrapper libraries that excessively hide functionality. I'm also in favor of adding an unsafe, well-documented no-copy iterator method for those who would benefit from the use case.

from rust-rocksdb.

alexreg avatar alexreg commented on May 27, 2024

Surely the solution here is simply to import the sys crate directly, if you want the ffi functionality? That sounds much cleaner, to me.

from rust-rocksdb.

kaedroho avatar kaedroho commented on May 27, 2024

I'd like to make sure I'm always using a compatible -sys crate with the rocksdb crate. Problem is that if I use the -sys crate directly i'd have to specify a direct dependency to it in the Cargo.toml for my project so have to make sure it's a compatible version when updating rocksdb (which is a minor annoyance).

from rust-rocksdb.

alexreg avatar alexreg commented on May 27, 2024

Hmm, fair point, I suppose... is this convention though? I don't see any other crates doing this.

from rust-rocksdb.

rrichardson avatar rrichardson commented on May 27, 2024

There are a couple cases where this is done, nix comes to mind. We use it at work for re-exporting types. E.g. the core of our utility libraries are codegen'd from protobufs or whatever, and the easiest way to stay in sync is have the utility libraries re-export the codegen'd functionality.

from rust-rocksdb.

iSynaptic avatar iSynaptic commented on May 27, 2024

I feel the real issue here is that this crate doesn't expose sufficient functionality. I think in the past few months we have been making good strides towards improving the situation (eg. #209, #212, #238, #240, #246, #248, #253, #263). I actually like the pressure of GitHub issues stating that functionality is not accessible as a motivating force to improve this crate. Exposing the FFI might mean we will get fewer of those issues (or PRs) since a workaround exists.

I propose we close this issue and continue working toward exposing more functionality.

/cc @aleksuss @vitvakatu

from rust-rocksdb.

iSynaptic avatar iSynaptic commented on May 27, 2024

There haven't been any objections to my proposal. I'm going to close and we can revisit if someone feels otherwise.

from rust-rocksdb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.