1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
//! Shared utilities for `jsonrpsee`.

#![warn(missing_docs)]

#[cfg(all(feature = "hyper13", feature = "hyper14"))]
compile_error!("feature `hyper13` and `hyper14` are mutably exclusive");

#[cfg(all(feature = "hyper13", not(feature = "hyper14")))]
extern crate hyper13 as hyper;

#[cfg(all(feature = "hyper14", not(feature = "hyper13")))]
extern crate hyper14 as hyper;

/// Shared hyper helpers.
#[cfg(any(feature = "hyper13", feature = "hyper14"))]
pub mod hyper_helpers;

/// Shared code for JSON-RPC servers.
#[cfg(feature = "server")]
pub mod server;