Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fold in rocksdb libs #1968

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
445 changes: 0 additions & 445 deletions Setup.hs

This file was deleted.

17 changes: 1 addition & 16 deletions cabal.project
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
packages: chainweb.cabal
packages: .

debug-info: True

Expand Down Expand Up @@ -52,9 +52,6 @@ package pact
-- avoid conflict with cryptonite during linking
flags: +cryptonite-ed25519 -build-tool

package rocksdb-haskell-kadena
ghc-options: -Wwarn -optc-w -optcxx-w

package crypton
flags: +support_pclmuldq

Expand Down Expand Up @@ -84,18 +81,6 @@ source-repository-package
tag: 1d260bfaa48312b54851057885de4c43c420e35f
--sha256: 0fzq4mzaszj5clvixx9mn1x6r4dcrnwvbl2znd0p5mmy5h2jr0hh

source-repository-package
type: git
location: https://github.com/kadena-io/chainweb-storage.git
tag: 4b45c1ab9c070c6d16a058bcbab0c06ac0fb6d4e
--sha256: 0m6c7kl6x5a3k02q2i7qzfx91kxz19dzav0piqfxra52bq0x3sm6

source-repository-package
type: git
location: https://github.com/kadena-io/rocksdb-haskell.git
tag: cede9de2932a4ead1bd82fd7709b19ab7b19b33d
--sha256: 1dngd44va6h66vwpdpwmnj0zcky87m4vzykjwv49p2km12lwq9mf

source-repository-package
type: git
location: https://github.com/kadena-io/rosetta.git
Expand Down
5 changes: 1 addition & 4 deletions cabal.project.freeze
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ constraints: any.Boolean ==0.2.4,
any.cassava ==0.5.3.1,
any.cborg ==0.2.10.0,
any.cereal ==0.5.8.3,
chainweb -debug -ed25519 -ghc-flags,
any.chainweb-storage ==0.1.0.0,
chainweb -debug -ed25519 -ghc-flags -rocksdb-with-tbb,
any.character-ps ==0.1,
any.charset ==0.3.10,
any.chronos ==1.1.5.1,
Expand Down Expand Up @@ -229,8 +228,6 @@ constraints: any.Boolean ==0.2.4,
any.resource-pool ==0.4.0.0,
any.resourcet ==1.3.0,
any.retry ==0.9.3.1,
any.rocksdb-haskell-kadena ==1.1.0,
rocksdb-haskell-kadena -with-tbb,
any.rosetta ==1.0.1,
any.rts ==1.0.2,
any.run-st ==0.1.3.3,
Expand Down
553 changes: 535 additions & 18 deletions chainweb.cabal

Large diffs are not rendered by default.

30 changes: 30 additions & 0 deletions vendored/chainweb-storage/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Copyright (c) 2019-2022, Kadena LLC

All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.

* Neither the name of Lars Kuhtz nor the names of other
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 changes: 33 additions & 0 deletions vendored/chainweb-storage/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
This package provides some storage tools that are used in
[chainweb](https://github.com/kadena-io/chainweb).

## Installation

This package depends on RocksDb and a C++ compiler which must be installed prior to building.

On Ubuntu:

```bash
sudo apt-get install librocksdb-dev g++
```

On MacOSX using [homebrew](https://brew.sh):

```bash
brew install rocksdb
```

On Windows using [msys2](https://www.msys2.org):

```bash
pacman -S mingw-w64-x86_64-rocksdb g++
```

On windows, for GHC to find installed libraries you'll have to add the following
settings to your `cabal.project.local` file:

```cabal
package rocksdb-haskell
extra-lib-dirs: C:\\msys64\\mingw64\\lib
extra-include-dirs: C:\\msys64\\mingw64\\include
```
Loading
Loading