Code Monkey home page Code Monkey logo

Comments (9)

bh1xuw avatar bh1xuw commented on September 4, 2024 2

Wraps generic pointers into a c struct, use struct as opaque pointers in Rust. (almost the same as rocksdb c.h API)
Some plain old struct(like Statistics, some callback structs), can be directly mapped as a rust #[repr(C)] struct.

from rust-rocks.

alexreg avatar alexreg commented on September 4, 2024 2

Nice work. I certainly encourage you to keep going on this project. I may switch to using it myself at some point soon, and perhaps contribute, if you need anything!

from rust-rocks.

bh1xuw avatar bh1xuw commented on September 4, 2024 1

Thanks. Just published v0.1.0.

from rust-rocks.

alexreg avatar alexreg commented on September 4, 2024 1

Hey @bh1xuw. Is this project abandoned, or have you just not needed to improve its featureset lately?

from rust-rocks.

bh1xuw avatar bh1xuw commented on September 4, 2024

Yes. Thanks for your pointing out.

  • spacejam/rust-rocksdb use pure c.h interface, which lacks some advanced functions. And may introduce some overhead(string conversion, pointer to pointer to the underlying C++ instance.).
  • other rust-rocksdb forks, notably pingcap's fork, which has the fullest feature set, never seem to be able to merge to upstream.

This project is for personal experiment & learning.

from rust-rocks.

bh1xuw avatar bh1xuw commented on September 4, 2024

Will leave this issue forever opened.
(sorry for changing your issue title

from rust-rocks.

alexreg avatar alexreg commented on September 4, 2024

Okay, thanks.

I didn't know direct C++ interop was possible. How do you manage that?

from rust-rocks.

bh1xuw avatar bh1xuw commented on September 4, 2024

@alexreg :) just made it up to date. v0.1.5 published.

from rust-rocks.

alexreg avatar alexreg commented on September 4, 2024

@bh1xuw Thanks!

from rust-rocks.

Related Issues (11)

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.