1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//! Paperclip is a OpenAPI code generator for efficient type-safe
//! compile-time checked HTTP APIs in Rust.
//!
//! See the [website](https://paperclip.waffles.space) for detailed
//! documentation and examples.

#[cfg_attr(feature = "codegen", macro_use)]
#[cfg(feature = "codegen")]
extern crate log;

mod error;
#[cfg(feature = "v2")]
pub mod v2;

pub use error::{PaperClipError, PaperClipResult};
#[cfg(feature = "v2")]
pub use paperclip_macros::api_v2_schema_struct as api_v2_schema;

#[cfg(feature = "actix")]
pub mod actix {
    //! Plugin types, traits and macros for actix-web framework.

    pub use paperclip_actix::{api_v2_errors, api_v2_operation, Apiv2Schema, Apiv2Security};
    pub use paperclip_actix::{web, App, Mountable, OpenApiExt};
    pub use paperclip_core::v2::{OperationModifier, ResponderWrapper};
}