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
0b25aa21
Commit
0b25aa21
authored
Nov 26, 2014
by
Tyler Neely
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OSX support
parent
ffa6daf2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
16 deletions
+15
-16
README.md
README.md
+7
-8
build.rs
rocksdb-sys/build.rs
+8
-8
No files found.
README.md
View file @
0b25aa21
...
...
@@ -6,22 +6,21 @@ rust-rocksdb
*
status (uncompleted tasks are not ranked by priority):
-
[
x
]
basic open/put/get/close
-
[
x
]
linux support
-
[
x
]
rocksdb itself retrieved and compiled via cargo
-
[
]
OSX support
-
[
]
windows support
-
[
x
]
rocksdb compiled via cargo
-
[
x
]
OSX support
-
[
]
column family operations
-
[
]
LRU cache
-
[
]
destroy/repair
-
[
]
batch
-
[
]
iterator
-
[
]
create/release snapshot
-
[
]
range
-
[
]
compaction filter, style
-
[
]
rustic merge operator
-
[
]
compaction filter, style
-
[
]
comparator
-
[
]
slicetransform
-
[
]
LRU cache
-
[
]
windows support
-
[
]
logger
-
[
]
column family operations
-
[
]
destroy/repair
-
[
]
windows support
### running
-
Cargo.toml
...
...
rocksdb-sys/build.rs
View file @
0b25aa21
...
...
@@ -4,7 +4,7 @@ use std::os;
use
std
::
io
::{
mod
,
fs
,
Command
};
use
std
::
io
::
process
::
InheritFd
;
//TODO windows
+ osx
support
//TODO windows support
fn
main
()
{
// Next, fall back and try to use pkg-config if its available.
...
...
@@ -18,12 +18,7 @@ fn main() {
let
_
=
fs
::
mkdir
(
&
dst
.join
(
"build"
),
io
::
USER_DIR
);
let
mut
config_opts
=
Vec
::
new
();
config_opts
.push
(
"--enable-static=yes"
.to_string
());
config_opts
.push
(
format!
(
"--prefix={}"
,
dst
.display
()));
config_opts
.push
(
"--disable-manual"
.to_string
());
println!
(
"cwd: {}"
,
src
.as_str
());
println!
(
"cwd: {}"
,
src
.join
(
"rocksdb"
)
.as_str
());
run
(
Command
::
new
(
make
())
.arg
(
"shared_lib"
)
.arg
(
format!
(
"-j{}"
,
os
::
getenv
(
"NUM_JOBS"
)
.unwrap
()))
...
...
@@ -33,7 +28,12 @@ fn main() {
// for windows.
fs
::
mkdir_recursive
(
&
dst
.join
(
"lib/pkgconfig"
),
io
::
USER_DIR
)
.unwrap
();
fs
::
rename
(
&
src
.join
(
"rocksdb/librocksdb.so"
),
&
dst
.join
(
"lib/librocksdb.so"
))
.unwrap
();
let
target
=
os
::
getenv
(
"TARGET"
)
.unwrap
();
if
target
.contains
(
"apple"
)
{
fs
::
rename
(
&
src
.join
(
"rocksdb/librocksdb.dylib"
),
&
dst
.join
(
"lib/librocksdb.dylib"
))
.unwrap
();
}
else
{
fs
::
rename
(
&
src
.join
(
"rocksdb/librocksdb.so"
),
&
dst
.join
(
"lib/librocksdb.so"
))
.unwrap
();
}
println!
(
"cargo:rustc-flags=-L {}/lib -l rocksdb:dylib"
,
dst
.display
());
println!
(
"cargo:root={}"
,
dst
.display
());
...
...
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