Comments (7)
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.
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.
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.
Hmm, fair point, I suppose... is this convention though? I don't see any other crates doing this.
from rust-rocksdb.
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.
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.
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)
- Build broken for 0.8.3+7.4.4 HOT 1
- Is WriteBatchWithIndex supported? HOT 4
- `delete_range` and `delete_range_cf` not implemented for `TransactionDB` or `OptimisticTransactionDB` HOT 3
- multi-threaded-cf feature produces incompatible API--does not adhere to docs.rust-lang.org guidelines
- write_opt consumes WriteBatch
- Request to be added as a maintainer HOT 4
- Why librocksdb-sys recompilation not cached?
- plan to new release version? HOT 6
- [security] cargo audit found vulnerabilities HOT 1
- is FlushOptions missing Send and Sync impl's?
- enabling the jemalloc feature doesn't actually enable jemalloc HOT 12
- error: failed to run custom build command for `librocksdb-sys v0.8.0+7.4.4` (arch linux) HOT 6
- Fail to build on Windows msys2 rust (x86_64-pc-windows-gnu toolchain) HOT 1
- flush isn't exposed for TransactionDB
- compaction_filter on a column family not triggered HOT 1
- Failed to build using Clang-18
- why `share_table_files` option is not support?
- TransactionDB `open_default` panic HOT 5
- Support for RocksDB 9.X HOT 1
- Way to ensure checkpoint is completed? HOT 1
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.