Allow elastic feature to be disabled (#529)
This commit is contained in:
parent
b8518f6d48
commit
7d1c1046ba
|
@ -27,7 +27,11 @@ sha2 = "0.9"
|
|||
pandoc = "0.8"
|
||||
semver = "1.0"
|
||||
|
||||
elasticsearch = {git = "https://github.com/elastic/elasticsearch-rs", features = ["rustls-tls"]}
|
||||
elasticsearch = {git = "https://github.com/elastic/elasticsearch-rs", features = ["rustls-tls"], optional = true}
|
||||
|
||||
[features]
|
||||
default = ["elastic"]
|
||||
elastic = ["elasticsearch"]
|
||||
|
||||
[lib]
|
||||
name = "flake_info"
|
||||
|
|
|
@ -5,6 +5,8 @@ use data::{import::Kind, Export, Flake, Source};
|
|||
|
||||
pub mod commands;
|
||||
pub mod data;
|
||||
|
||||
#[cfg(feature = "elastic")]
|
||||
pub mod elastic;
|
||||
|
||||
pub use commands::get_flake_info;
|
||||
|
|
Loading…
Reference in a new issue