Skip to content

Commit

Permalink
Add LMDB database backend (ordinals#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Mar 13, 2022
1 parent 009b705 commit 8ccc2ad
Show file tree
Hide file tree
Showing 17 changed files with 795 additions and 176 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,18 @@ jobs:
cargo update --locked --package ord
- name: Test
run: cargo test --all
run: |
cargo test --all
cargo test --all --features redb
- name: Clippy
run: cargo clippy --all --all-targets
run: |
cargo clippy --all --all-targets
cargo clippy --all --all-targets --features redb
- name: Format
run: cargo fmt --all -- --check
run: |
cargo fmt --all -- --check
- name: Check for Forbidden Words
if: ${{ matrix.os == 'ubuntu-latest' }}
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea/
/.idea/
/index.lmdb
/index.redb
/target
113 changes: 107 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ autotests = false
[dependencies]
bitcoin = "0.27.1"
bitcoincore-rpc = "0.14.0"
chrono = "0.4.19"
clap = { version = "3.1.0", features = ["derive"] }
ctrlc = "3.2.1"
derive_more = "0.99.17"
dirs = "4.0.0"
env_logger = "0.9.0"
Expand All @@ -18,7 +20,9 @@ integer-cbrt = "0.1.2"
integer-sqrt = "0.1.5"
jsonrpc = "0.12.1"
log = "0.4.14"
redb = "0.0.5"
ord-lmdb-zero = "0.4.5"
rayon = "1.5.1"
redb = { version = "0.0.5", optional = true }

[dev-dependencies]
criterion = "0.3.5"
Expand Down
Loading

0 comments on commit 8ccc2ad

Please sign in to comment.