Comments (4)
Yes it would be nice. But before we start working on the details, I want to be sure that you understand the current status of this crate. Right now, the master branch is linked with TiKV's fork of RocksDB 6.29 (https://github.com/tikv/rocksdb). And we don't have a clear plan to update it yet. In fact, we are lowkey working on a new binding crate tirocks designed to replace this one. When that happens, this crate will likely be archived.
from rust-rocksdb.
The version isn't a problem as 6.29 supports full file checksum. But in that case, do you recomend using tirocks instead?
from rust-rocksdb.
do you recomend using tirocks instead?
tirocks is not production ready yet. But it would be fairly easy to port full checksum then because tirocks has a superior binding generation workflow.
The version isn't a problem as 6.29 supports full file checksum.
Great. To port full checksum in rust-rocksdb, you can start with the existing code of compaction filter. They have a very similar structure.
My recent commit refactored the compaction filter interface (9e46788). You can pretty much see how a binding is implemented: (1) declare ffi in c.h (2) implement ffi in c.cc (3) implement rust wrapper of raw C pointer. For structures involving callbacks (such as compaction filter or checksum generator), we need to pass Rust function as C function pointer, and Rust struct as C raw pointer. You can see it in action with CompactionFilterContext
or CompactionFilterFactoryProxy
.
from rust-rocksdb.
Thanks for the directions! I'll look into it.
from rust-rocksdb.
Related Issues (20)
- linking with `cc` failed: multiple definition of `__muloti4' HOT 6
- Reduce boxing in callback structs HOT 1
- Support rocksdb-cloud HOT 5
- Questions: About IndexType::TwoLevelIndexSearch HOT 1
- Implement BitMask PerfContext HOT 6
- Build fail on Apple Silicon/M1 HOT 1
- 什么时候能够支持windows版本呢 HOT 1
- WriteBatch::iterate memory leak HOT 2
- Can't compile with README.md HOT 2
- Doc: update examples HOT 1
- Compile fail in clang 13.1.6 HOT 2
- The variable 'cf_opts' is not used by 'DB::open_cf' HOT 1
- rocksdb 7.7.3 achieves significant improvement
- Does rust-rocksdb support async? HOT 2
- How to made rust backtrace readable?
- Fedora 38 build issue HOT 3
- Build failed when using clang 16
- Wide Columns support
- FFI bindings file generated by bindgen never used actually ? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust-rocksdb.