Skip to content

Commit 175f5d4

Browse files
committed
chore: flatten crates directory, rename example-crates to examples
1 parent 2a79bab commit 175f5d4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+23
-23
lines changed

.github/workflows/code_coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Make coverage directory
3535
run: mkdir coverage
3636
- name: Run grcov
37-
run: grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --keep-only '**/crates/**' --ignore '**/tests/**' --ignore '**/examples/**' -o ./coverage/lcov.info
37+
run: grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --keep-only '**/wallet/**' --ignore '**/tests/**' --ignore '**/examples/**' -o ./coverage/lcov.info
3838
- name: Generate HTML coverage report
3939
run: genhtml -o coverage-report.html --ignore-errors unmapped ./coverage/lcov.info
4040
- name: Coveralls upload

.github/workflows/cont_integration.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
- name: Rust Cache
7373
uses: Swatinem/rust-cache@v2.7.7
7474
- name: Check bdk wallet
75-
working-directory: ./crates/wallet
75+
working-directory: ./wallet
7676
# TODO "--target thumbv6m-none-eabi" should work but currently does not
7777
run: cargo check --no-default-features --features miniscript/no-std,bdk_chain/hashbrown
7878

@@ -102,7 +102,7 @@ jobs:
102102
- name: Rust Cache
103103
uses: Swatinem/rust-cache@v2.7.7
104104
- name: Check bdk wallet
105-
working-directory: ./crates/wallet
105+
working-directory: ./wallet
106106
run: cargo check --target wasm32-unknown-unknown --no-default-features --features miniscript/no-std,bdk_chain/hashbrown
107107

108108
fmt:
@@ -172,5 +172,5 @@ jobs:
172172
- name: Rust Cache
173173
uses: Swatinem/rust-cache@v2.7.7
174174
- name: Build
175-
working-directory: example-crates/${{ matrix.example-dir }}
175+
working-directory: examples/${{ matrix.example-dir }}
176176
run: cargo build

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[workspace]
22
resolver = "2"
33
members = [
4-
"crates/wallet",
5-
"example-crates/example_wallet_electrum",
6-
"example-crates/example_wallet_esplora_blocking",
7-
"example-crates/example_wallet_esplora_async",
8-
"example-crates/example_wallet_rpc",
4+
"wallet",
5+
"examples/example_wallet_electrum",
6+
"examples/example_wallet_esplora_blocking",
7+
"examples/example_wallet_esplora_async",
8+
"examples/example_wallet_rpc",
99
]
1010

1111
[workspace.package]

README.md

Lines changed: 6 additions & 6 deletions

example-crates/example_wallet_electrum/Cargo.toml renamed to examples/example_wallet_electrum/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ version = "0.2.0"
44
edition = "2021"
55

66
[dependencies]
7-
bdk_wallet = { path = "../../crates/wallet", features = ["file_store"] }
7+
bdk_wallet = { path = "../../wallet", features = ["file_store"] }
88
bdk_electrum = { version = "0.21" }
99
anyhow = "1"

example-crates/example_wallet_esplora_async/Cargo.toml renamed to examples/example_wallet_esplora_async/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ edition = "2021"
66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

88
[dependencies]
9-
bdk_wallet = { path = "../../crates/wallet", features = ["rusqlite"] }
9+
bdk_wallet = { path = "../../wallet", features = ["rusqlite"] }
1010
bdk_esplora = { version = "0.20", features = ["async-https", "tokio"] }
1111
tokio = { version = "1", features = ["rt", "rt-multi-thread", "macros"] }
1212
anyhow = "1"

example-crates/example_wallet_esplora_blocking/Cargo.toml renamed to examples/example_wallet_esplora_blocking/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ publish = false
77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

99
[dependencies]
10-
bdk_wallet = { path = "../../crates/wallet", features = ["file_store"] }
10+
bdk_wallet = { path = "../../wallet", features = ["file_store"] }
1111
bdk_esplora = { version = "0.20", features = ["blocking"] }
1212
anyhow = "1"

0 commit comments

Comments
 (0)