Fix cargo doc warning and missing sqlite feature

This commit is contained in:
Steve Myers 2021-09-30 16:11:42 -07:00
parent 18f1107c41
commit 22c39b7b78
No known key found for this signature in database
GPG Key ID: 8105A46B22C2D051
2 changed files with 2 additions and 2 deletions

View File

@ -113,6 +113,6 @@ required-features = ["compiler"]
[workspace] [workspace]
members = ["macros"] members = ["macros"]
[package.metadata.docs.rs] [package.metadata.docs.rs]
features = ["compiler", "electrum", "esplora", "ureq", "compact_filters", "rpc", "key-value-db", "all-keys", "verify"] features = ["compiler", "electrum", "esplora", "ureq", "compact_filters", "rpc", "key-value-db", "sqlite", "all-keys", "verify"]
# defines the configuration attribute `docsrs` # defines the configuration attribute `docsrs`
rustdoc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"]

View File

@ -84,7 +84,7 @@ pub struct RpcConfig {
/// This struct is equivalent to [core_rpc::Auth] but it implements [serde::Serialize] /// This struct is equivalent to [core_rpc::Auth] but it implements [serde::Serialize]
/// To be removed once upstream equivalent is implementing Serialize (json serialization format /// To be removed once upstream equivalent is implementing Serialize (json serialization format
/// should be the same) https://github.com/rust-bitcoin/rust-bitcoincore-rpc/pull/181 /// should be the same), see [rust-bitcoincore-rpc/pull/181](https://github.com/rust-bitcoin/rust-bitcoincore-rpc/pull/181)
#[derive(Clone, Debug, Hash, Eq, PartialEq, Ord, PartialOrd, Serialize, Deserialize)] #[derive(Clone, Debug, Hash, Eq, PartialEq, Ord, PartialOrd, Serialize, Deserialize)]
#[serde(rename_all = "snake_case")] #[serde(rename_all = "snake_case")]
#[serde(untagged)] #[serde(untagged)]