conjure_http/
lib.rs

1// Copyright 2019 Palantir Technologies, Inc.
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//! Interfaces for Conjure HTTP clients and servers.
16//!
17//! Conjure services generate code that interacts with the types and traits in this crate, so that
18//! consumers are not tightly bound to specific client and server implementations.
19//!
20//! # Macros
21//!
22//! If the `macros` Cargo feature is enabled, the `conjure_client` macro can be used to create
23//! client implementations for non-Conjure APIs.
24#![warn(missing_docs, clippy::all)]
25// https://github.com/rust-lang/rust-clippy/issues/7752
26#![allow(
27    clippy::declare_interior_mutable_const,
28    clippy::borrow_interior_mutable_const
29)]
30
31#[cfg(feature = "macros")]
32#[doc(inline)]
33pub use conjure_macros::{conjure_client, conjure_endpoints, endpoint};
34
35#[doc(inline)]
36pub use crate::path_params::PathParams;
37#[doc(inline)]
38pub use crate::safe_params::SafeParams;
39
40pub mod client;
41pub mod path_params;
42pub mod safe_params;
43pub mod server;
44
45#[doc(hidden)]
46pub mod private;