-
Notifications
You must be signed in to change notification settings - Fork 544
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
131 changed files
with
4,010 additions
and
2,994 deletions.
There are no files selected for viewing
This file contains 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 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,6 +1,7 @@ | ||
**LevelDB is a fast key-value storage library written at Google that provides an ordered mapping from string keys to string values.** | ||
|
||
[](https://travis-ci.org/google/leveldb) | ||
[](https://ci.appveyor.com/project/pwnall/leveldb) | ||
|
||
Authors: Sanjay Ghemawat ([email protected]) and Jeff Dean ([email protected]) | ||
|
||
|
@@ -30,13 +31,38 @@ Authors: Sanjay Ghemawat ([email protected]) and Jeff Dean ([email protected]) | |
|
||
This project supports [CMake](https://cmake.org/) out of the box. | ||
|
||
### Build for POSIX | ||
|
||
Quick start: | ||
|
||
```bash | ||
mkdir -p build && cd build | ||
cmake -DCMAKE_BUILD_TYPE=Release .. && cmake --build . | ||
``` | ||
|
||
### Building for Windows | ||
|
||
First generate the Visual Studio 2017 project/solution files: | ||
|
||
```cmd | ||
mkdir build | ||
cd build | ||
cmake -G "Visual Studio 15" .. | ||
``` | ||
The default default will build for x86. For 64-bit run: | ||
|
||
```cmd | ||
cmake -G "Visual Studio 15 Win64" .. | ||
``` | ||
|
||
To compile the Windows solution from the command-line: | ||
|
||
```cmd | ||
devenv /build Debug leveldb.sln | ||
``` | ||
|
||
or open leveldb.sln in Visual Studio and build from within. | ||
|
||
Please see the CMake documentation and `CMakeLists.txt` for more advanced usage. | ||
|
||
# Contributing to the leveldb Project | ||
|
@@ -48,10 +74,10 @@ will be considered. | |
|
||
Contribution requirements: | ||
|
||
1. **POSIX only**. We _generally_ will only accept changes that are both | ||
compiled, and tested on a POSIX platform - usually Linux. Very small | ||
changes will sometimes be accepted, but consider that more of an | ||
exception than the rule. | ||
1. **Tested platforms only**. We _generally_ will only accept changes for | ||
platforms that are compiled and tested. This means POSIX (for Linux and | ||
macOS) or Windows. Very small changes will sometimes be accepted, but | ||
consider that more of an exception than the rule. | ||
|
||
2. **Stable API**. We strive very hard to maintain a stable API. Changes that | ||
require changes for projects using leveldb _might_ be rejected without | ||
|
@@ -60,6 +86,14 @@ Contribution requirements: | |
3. **Tests**: All changes must be accompanied by a new (or changed) test, or | ||
a sufficient explanation as to why a new (or changed) test is not required. | ||
|
||
4. **Consistent Style**: This project conforms to the | ||
[Google C++ Style Guide](https://google.github.io/styleguide/cppguide.html). | ||
To ensure your changes are properly formatted please run: | ||
|
||
``` | ||
clang-format -i --style=file <file> | ||
``` | ||
|
||
## Submitting a Pull Request | ||
|
||
Before any pull request will be accepted the author must first sign a | ||
|
This file contains 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 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 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
Oops, something went wrong.