fastcgi_client/lib.rs
1// Copyright 2022 jmjoy
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#![warn(rust_2018_idioms)]
16#![warn(clippy::dbg_macro, clippy::print_stdout, missing_docs)]
17#![cfg_attr(docsrs, feature(doc_cfg))]
18#![doc = include_str!("../README.md")]
19
20#[cfg(not(any(feature = "runtime-tokio", feature = "runtime-smol")))]
21compile_error!("Enable at least one runtime feature: `runtime-tokio` or `runtime-smol`.");
22
23pub mod client;
24pub mod conn;
25mod error;
26pub mod io;
27mod meta;
28pub mod params;
29pub mod request;
30pub mod response;
31
32/// Re Export StreamExt for .next support
33pub use futures_util::stream::StreamExt;
34
35pub use crate::{client::Client, error::*, params::Params, request::Request, response::Response};