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
cc896542
Commit
cc896542
authored
Jun 17, 2017
by
liyanan
Committed by
ShuYu Wang
Jun 17, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explicit fail when rocksdb version is too low (#68)
parent
62741f9e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
Cargo.toml
librocksdb_sys/Cargo.toml
+1
-0
build.rs
librocksdb_sys/build.rs
+9
-1
No files found.
librocksdb_sys/Cargo.toml
View file @
cc896542
...
...
@@ -18,3 +18,4 @@ sse = []
[build-dependencies]
gcc
=
"0.3"
pkg-config
=
"0.3.8"
librocksdb_sys/build.rs
View file @
cc896542
extern
crate
gcc
;
extern
crate
pkg_config
;
use
std
::{
env
,
fs
,
str
};
use
std
::
path
::
PathBuf
;
...
...
@@ -13,7 +13,15 @@ macro_rules! t {
}
fn
main
()
{
const
ROCKSDB_VERSION
:
&
'static
str
=
"5.4"
;
if
!
cfg!
(
feature
=
"static-link"
)
{
match
pkg_config
::
Config
::
new
()
.atleast_version
(
ROCKSDB_VERSION
)
.probe
(
"rocksdb"
)
{
Ok
(
_
)
=>
(),
Err
(
_
)
=>
{
panic!
(
"failed to find rocksdb >= {} by pkg-config"
,
ROCKSDB_VERSION
);
}
}
gcc
::
Config
::
new
()
.cpp
(
true
)
.file
(
"crocksdb/c.cc"
)
...
...
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