Skip to content

Commit

Permalink
ci: fix default feature build
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Dec 25, 2023
1 parent af58684 commit 065fb5e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ serde_yaml = { workspace = true, optional = true }
log = { workspace = true, optional = true }

[features]
default = []
default = ["esplora"]
all = ["esplora", "serde", "log"]
esplora = ["bp-esplora", "bp-wallet/esplora"]
serde = ["serde_crate", "serde_yaml", "bp-std/serde", "bp-wallet/serde",]
Expand Down
2 changes: 1 addition & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ bp-wallet = { workspace = true }
bp-util = { workspace = true }
psbt = { workspace = true }
rgb-std = { workspace = true, features = ["serde"] }
rgb-runtime = { version = "0.11.0-alpha.2", path = "..", features = ["log", "serde"] }
rgb-runtime = { version = "0.11.0-alpha.2", path = "..", features = ["esplora", "log", "serde"] }
log = { workspace = true }
env_logger = "0.10.1"
clap = { version = "4.4.8", features = ["derive", "env"] }
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ extern crate serde_crate as serde;
mod runtime;
mod descriptor;
mod pay;
#[cfg(feature = "esplora")]
mod resolver;

pub use descriptor::{DescriptorRgb, RgbDescr, RgbKeychain, TapTweakAlreadyAssigned, TapretKey};
pub use pay::{CompletionError, CompositionError, PayError, TransferParams};
#[cfg(feature = "esplora")]
pub use resolver::{AnchorResolverError, Resolver, ResolverError};
pub use runtime::{Runtime, RuntimeError};
1 change: 1 addition & 0 deletions src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ pub enum RuntimeError {
#[from(bpwallet::LoadError)]
Bp(bpwallet::RuntimeError),

#[cfg(feature = "esplora")]
#[from]
Esplora(esplora::Error),

Expand Down

0 comments on commit 065fb5e

Please sign in to comment.