Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
R
rust-rocksdb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangzongwu
rust-rocksdb
Commits
3c9895e2
Commit
3c9895e2
authored
Feb 24, 2015
by
Tyler Neely
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update crate version and examples for 1.0.0-alpha.2
parent
0c7496b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
README.md
README.md
+3
-3
No files found.
README.md
View file @
3c9895e2
...
@@ -2,7 +2,7 @@ rust-rocksdb
...
@@ -2,7 +2,7 @@ rust-rocksdb
============
============
[

](https://travis-ci.org/spacejam/rust-rocksdb)
[

](https://travis-ci.org/spacejam/rust-rocksdb)
This library has been tested against RocksDB 3.8.1 on linux and OSX. The 0.0.
3 crate should work with the 1.0.0-alpha
Rust release.
This library has been tested against RocksDB 3.8.1 on linux and OSX. The 0.0.
4 crate should work with the 1.0.0-alpha.2
Rust release.
###### Prerequisite: RocksDB
###### Prerequisite: RocksDB
```
bash
```
bash
wget https://github.com/facebook/rocksdb/archive/rocksdb-3.8.tar.gz
wget https://github.com/facebook/rocksdb/archive/rocksdb-3.8.tar.gz
...
@@ -14,7 +14,7 @@ sudo make install
...
@@ -14,7 +14,7 @@ sudo make install
###### Cargo.toml
###### Cargo.toml
```
rust
```
rust
[
dependencies
]
[
dependencies
]
rocksdb
=
"~0.0.
3
"
rocksdb
=
"~0.0.
4
"
```
```
###### Code
###### Code
```
rust
```
rust
...
@@ -43,7 +43,7 @@ use rocksdb::{RocksDBOptions, RocksDB, MergeOperands};
...
@@ -43,7 +43,7 @@ use rocksdb::{RocksDBOptions, RocksDB, MergeOperands};
fn
concat_merge
(
new_key
:
&
[
u8
],
existing_val
:
Option
<&
[
u8
]
>
,
fn
concat_merge
(
new_key
:
&
[
u8
],
existing_val
:
Option
<&
[
u8
]
>
,
mut
operands
:
&
mut
MergeOperands
)
->
Vec
<
u8
>
{
mut
operands
:
&
mut
MergeOperands
)
->
Vec
<
u8
>
{
let
mut
result
:
Vec
<
u8
>
=
Vec
::
with_capacity
(
operands
.size_hint
()
.
val0
()
);
let
mut
result
:
Vec
<
u8
>
=
Vec
::
with_capacity
(
operands
.size_hint
()
.
0
);
match
existing_val
{
match
existing_val
{
Some
(
v
)
=>
result
.push_all
(
v
),
Some
(
v
)
=>
result
.push_all
(
v
),
None
=>
(),
None
=>
(),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment