mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-16 04:14:25 +01:00
The `cln-grpc` crate really has a dual purpose: server and client. Having the server feature be included by default means that we are pulling in `cln-rpc` which is a Unix only crate, because of the use of UDS to talk to CLN. We want to use `cln-grpc` on clients too, and those might not be Unix variants, hence they'd fail when compiling `cln-rpc`. This PR guards the Unix-related parts behind the `server` feature flag.
16 lines
254 B
Rust
16 lines
254 B
Rust
// Huge json!() macros require lots of recursion
|
|
#![recursion_limit = "1024"]
|
|
|
|
#[cfg(feature = "server")]
|
|
mod convert;
|
|
pub mod pb;
|
|
|
|
#[cfg(feature = "server")]
|
|
mod server;
|
|
|
|
#[cfg(feature = "server")]
|
|
pub use crate::server::Server;
|
|
|
|
#[cfg(test)]
|
|
mod test;
|