Skip to content

Commit

Permalink
chore: refactor crates and module structure
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Jul 30, 2023
1 parent 8f4fc47 commit 7321ea9
Show file tree
Hide file tree
Showing 29 changed files with 213 additions and 2,105 deletions.
30 changes: 29 additions & 1 deletion Cargo.lock

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

40 changes: 30 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,31 +1,51 @@
[package]
name = "bp-wallet"
[workspace]
members = ["std", "invoice", "psbt", "."]

[workspace.package]
version = "0.11.0"
description = "Modern, minimalistic & standard-compliant cold wallet library"
keywords = ["bitcoin", "wallet", "descriptor-wallet", "psbt", "taproot"]
categories = ["cryptography::cryptocurrencies"]
readme = "README.md"
authors = ["Dr Maxim Orlovsky <orlovsky@lnp-bp.org>"]
homepage = "https://lnp-bp.org"
repository = "https://github.com/BP-WG/bp-wallet"
rust-version = "1.60" # Due to rust-amplify
edition = "2021"
license = "Apache-2.0"

[lib]
name = "bp"

[dependencies]
[workspace.dependencies]
amplify = "4.0.0"
bitcoin_hashes = "0.12.0"
bech32 = "0.9.1"
bp-primitives = "0.10.6"
serde_crate = { package = "serde", version = "1", features = ["derive"], optional = true }
serde_crate = { package = "serde", version = "1", features = ["derive"] }

[package]
name = "bp-wallet"
version = { workspace = true }
description = "Modern, minimalistic & standard-compliant cold wallet library"
keywords = { workspace = true }
categories = { workspace = true }
readme = "README.md"
authors = { workspace = true }
homepage = { workspace = true }
repository = { workspace = true }
rust-version = { workspace = true }
edition = { workspace = true }
license = { workspace = true }

[lib]
name = "bp"

[dependencies]
amplify = { workspace = true }
bp-std = { path = "std" }
bp-invoice = { path = "invoice" }
psbt = { path = "psbt" }

[features]
default = []
all = ["serde"]
serde = ["serde_crate", "bp-primitives/serde"]
serde = ["amplify/serde", "bp-std/serde", "bp-invoice/serde", "psbt/serde"]

[patch.crates-io]
bp-primitives = { git = "https://github.com/BP-WG/bp-core", branch = "primitives" }
2 changes: 1 addition & 1 deletion MANIFEST.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Name: bp-bips
Name: bp-wallet
Type: Library
Kind: Free software
License: Apache-2.0
Expand Down
Loading

0 comments on commit 7321ea9

Please sign in to comment.