From 065fb5eeaf238327955857637fb4414702a639e4 Mon Sep 17 00:00:00 2001 From: Dr Maxim Orlovsky Date: Mon, 25 Dec 2023 20:32:13 +0100 Subject: [PATCH] ci: fix default feature build --- Cargo.toml | 2 +- cli/Cargo.toml | 2 +- src/lib.rs | 2 ++ src/runtime.rs | 1 + 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 4808c05..25c5253 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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",] diff --git a/cli/Cargo.toml b/cli/Cargo.toml index ab4a689..5c18b0a 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -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"] } diff --git a/src/lib.rs b/src/lib.rs index 8f9723c..7c22480 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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}; diff --git a/src/runtime.rs b/src/runtime.rs index 92bf31e..da90033 100644 --- a/src/runtime.rs +++ b/src/runtime.rs @@ -90,6 +90,7 @@ pub enum RuntimeError { #[from(bpwallet::LoadError)] Bp(bpwallet::RuntimeError), + #[cfg(feature = "esplora")] #[from] Esplora(esplora::Error),