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
9f606d34
Commit
9f606d34
authored
Mar 09, 2017
by
siddontang
Committed by
zhangjinpeng1987
Mar 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*: add Makefile and adjust test folder (#14)
parent
4894f435
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
38 additions
and
3 deletions
+38
-3
Cargo.toml
Cargo.toml
+2
-2
Makefile
Makefile
+34
-0
lib.rs
librocksdb_sys/src/lib.rs
+2
-1
test.rs
tests/test.rs
+0
-0
test_column_family.rs
tests/test_column_family.rs
+0
-0
test_compact_range.rs
tests/test_compact_range.rs
+0
-0
test_compaction_filter.rs
tests/test_compaction_filter.rs
+0
-0
test_ingest_external_file.rs
tests/test_ingest_external_file.rs
+0
-0
test_iterator.rs
tests/test_iterator.rs
+0
-0
test_multithreaded.rs
tests/test_multithreaded.rs
+0
-0
test_prefix_extractor.rs
tests/test_prefix_extractor.rs
+0
-0
test_rocksdb_options.rs
tests/test_rocksdb_options.rs
+0
-0
test_slice_transform.rs
tests/test_slice_transform.rs
+0
-0
test_statistics.rs
tests/test_statistics.rs
+0
-0
No files found.
Cargo.toml
View file @
9f606d34
...
...
@@ -11,7 +11,7 @@ exclude = [
".gitignore"
,
".travis.yml"
,
"deploy.sh"
,
"test/**/*"
,
"test
s
/**/*"
,
]
[features]
...
...
@@ -23,7 +23,7 @@ portable = ["librocksdb_sys/portable"]
[[test]]
name
=
"test"
path
=
"test/test.rs"
path
=
"test
s
/test.rs"
[dependencies]
libc
=
"0.2.11"
...
...
Makefile
0 → 100644
View file @
9f606d34
.PHONY
:
all format
# format rust code using the specified command for the specified file or directory.
# $(call do-format-with-cmd,cmd,file-or-dir)
define
do-format-with-cmd
$1
--write-mode
diff
$2
|
grep
-E
"Diff .*at line"
>
/dev/null
&&
$1
--write-mode
overwrite
$2
||
exit
0
endef
# format rust code in the specified file or directory
# a file of rust code follows the convention of having suffix '.rs'
# $(call format-code-in,file-or-dir)
define
format-code-in
$(if
$(filter
%.rs,
$1),
\
$(call
do-format-with-cmd,
rustfmt,
$1),
\
cd
$1
&&
$(call
do-format-with-cmd,
cargo
fmt
--))
endef
all
:
format build test
build
:
@
cargo build
test
:
@
export
RUST_BACKTRACE
=
1
&&
cargo
test
--
--nocapture
format
:
@
$
(
call format-code-in, .
)
@
$
(
call format-code-in, tests/test.rs
)
@
$
(
call format-code-in, librocksdb_sys
)
clean
:
@
cargo clean
@
cd
librocksdb_sys
&&
cargo clean
\ No newline at end of file
librocksdb_sys/src/lib.rs
View file @
9f606d34
...
...
@@ -490,7 +490,8 @@ extern "C" {
klen
:
size_t
));
pub
fn
crocksdb_writebatch_data
(
batch
:
*
mut
DBWriteBatch
,
size
:
*
mut
size_t
)
->
*
const
u8
;
pub
fn
crocksdb_writebatch_set_save_point
(
batch
:
*
mut
DBWriteBatch
);
pub
fn
crocksdb_writebatch_rollback_to_save_point
(
batch
:
*
mut
DBWriteBatch
,
err
:
*
mut
*
mut
c_char
);
pub
fn
crocksdb_writebatch_rollback_to_save_point
(
batch
:
*
mut
DBWriteBatch
,
err
:
*
mut
*
mut
c_char
);
// Comparator
pub
fn
crocksdb_options_set_comparator
(
options
:
*
mut
DBOptions
,
cb
:
*
mut
DBComparator
);
...
...
test/test.rs
→
test
s
/test.rs
View file @
9f606d34
File moved
test/test_column_family.rs
→
test
s
/test_column_family.rs
View file @
9f606d34
File moved
test/test_compact_range.rs
→
test
s
/test_compact_range.rs
View file @
9f606d34
File moved
test/test_compaction_filter.rs
→
test
s
/test_compaction_filter.rs
View file @
9f606d34
File moved
test/test_ingest_external_file.rs
→
test
s
/test_ingest_external_file.rs
View file @
9f606d34
File moved
test/test_iterator.rs
→
test
s
/test_iterator.rs
View file @
9f606d34
File moved
test/test_multithreaded.rs
→
test
s
/test_multithreaded.rs
View file @
9f606d34
File moved
test/test_prefix_extractor.rs
→
test
s
/test_prefix_extractor.rs
View file @
9f606d34
File moved
test/test_rocksdb_options.rs
→
test
s
/test_rocksdb_options.rs
View file @
9f606d34
File moved
test/test_slice_transform.rs
→
test
s
/test_slice_transform.rs
View file @
9f606d34
File moved
test/test_statistics.rs
→
test
s
/test_statistics.rs
View file @
9f606d34
File moved
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