This repository was archived by the owner on Feb 26, 2020. It is now read-only.
forked from rust-rocksdb/rust-rocksdb
-
Notifications
You must be signed in to change notification settings - Fork 22
Rename crate to parity-rocksdb #18
Merged
Merged
Changes from 9 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
7e58a19
rename crate to parity-rocksdb
andresilva 5c7dd1d
fix test_column_family tests
andresilva 106c476
add upstream authors
andresilva ffa3707
publish pre-release version
andresilva 0183fe5
remove rocksdb-sys gitignore
andresilva bf70df5
release version v0.5.0
andresilva 00fc8fd
rocksdb cherry-pick: Fix the build failure with OS_ANDROID (#4232)
JMLX42 48cad55
rocksdb: disable feature detection on portable builds
andresilva 3935cd0
set cmake system name for android cross-compilation builds
andresilva eddd5c1
use expect instead of unwrap_or_default when fetching env vars
andresilva 9c428da
disable fail on warnings for rocksdb build
andresilva 506793a
remove all usages of cfg! macro in build.rs
andresilva eb9c06f
bump parity-rocksdb-sys to v0.5.1
andresilva cdb8481
rocksdb: don't require sse4.2 cmake build flags on portable builds
andresilva 3ad095f
bump rocksdb-sys to v0.5.2
andresilva ed1c486
untabify build.rs
andresilva File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,10 @@ | ||
| *.swo | ||
| *.swp | ||
| target | ||
| Cargo.lock | ||
| *.orig | ||
| *.bk | ||
| _rust_rocksdb* | ||
| *rlib | ||
| tags | ||
| .idea | ||
| .idea | ||
| **/Cargo.lock | ||
| **/target/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,16 +1,15 @@ | ||
| [package] | ||
|
|
||
| name = "rocksdb" | ||
| name = "parity-rocksdb" | ||
| description = "A Rust wrapper for Facebook's RocksDB embeddable database." | ||
| version = "0.4.5" | ||
| authors = ["Tyler Neely <[email protected]>", "David Greenberg <[email protected]>"] | ||
| version = "0.5.0" | ||
| authors = ["Tyler Neely <[email protected]>", "David Greenberg <[email protected]>", "Parity Technologies <[email protected]>"] | ||
| license = "Apache-2.0" | ||
| keywords = ["database", "embedded", "LSM-tree", "persistence"] | ||
| homepage = "https://github.com/paritytech/rust-rocksdb" | ||
| exclude = [ | ||
| ".appveyor.yml", | ||
| ".gitignore", | ||
| ".travis.yml", | ||
| "deploy.sh", | ||
| "test/**/*", | ||
| ] | ||
|
|
||
|
|
@@ -25,5 +24,5 @@ path = "test/test.rs" | |
|
|
||
| [dependencies] | ||
| libc = "0.2" | ||
| rocksdb-sys = { path = "rocksdb-sys", version = "0.3.0" } | ||
| parity-rocksdb-sys = { path = "rocksdb-sys", version = "0.5" } | ||
| local-encoding = "0.2.0" | ||
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,8 @@ | ||
| [package] | ||
| name = "rocksdb-sys" | ||
| version = "0.3.0" | ||
| authors = ["Arkadiy Paronyan arkadiy@ethcore.io>"] | ||
| license = "MIT/Apache-2.0/BSD" | ||
| name = "parity-rocksdb-sys" | ||
| version = "0.5.0" | ||
| authors = ["Tyler Neely <[email protected]>", "David Greenberg <[email protected]>", "Parity Technologies <admin@parity.io>"] | ||
| license = "MIT/Apache-2.0/BSD-3-Clause" | ||
| description = "Native bindings to librocksdb" | ||
| readme = "README.md" | ||
| repository = "https://github.com/paritytech/rust-rocksdb.git" | ||
|
|
@@ -17,7 +17,7 @@ default = [] | |
| [dependencies] | ||
| libc = "0.2" | ||
| local-encoding = "0.2.0" | ||
| snappy-sys = { git = "https://github.com/paritytech/rust-snappy" } | ||
| parity-snappy-sys = "0.1" | ||
|
|
||
| [build-dependencies] | ||
| cmake = "0.1" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| extern crate rocksdb; | ||
| extern crate parity_rocksdb; | ||
|
|
||
| mod test_iterator; | ||
| mod test_multithreaded; | ||
| //mod test_column_family; | ||
| mod test_column_family; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is
CARGO_CFG_TARGET_OSset automatically when cargo runs, i.e. is it a "standard" env var? What is the default?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it is set by cargo depending on the OS the current build is targeting. This would be the same as
if cfg!(target_os = "android") {}but thecfg!macro doesn't do the right thing when cross-compiling.Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: shouldn't that be an
expect("...")instead ofunwrap_or_default()?