2018-04-01 13:04:45 +00:00
|
|
|
// Copyright (c) 2017-present PyO3 Project and Contributors
|
2018-05-19 15:27:26 +00:00
|
|
|
//! This crate contains the implementation of the proc macro attributes
|
2018-04-01 13:04:45 +00:00
|
|
|
|
2021-05-02 19:10:53 +00:00
|
|
|
#![cfg_attr(docsrs, feature(doc_cfg))]
|
2018-04-01 13:04:45 +00:00
|
|
|
#![recursion_limit = "1024"]
|
|
|
|
|
2021-01-09 17:33:28 +00:00
|
|
|
// Listed first so that macros in this module are available in the rest of the crate.
|
|
|
|
#[macro_use]
|
|
|
|
mod utils;
|
|
|
|
|
2021-02-20 15:15:20 +00:00
|
|
|
mod attrs;
|
2019-02-18 19:07:41 +00:00
|
|
|
mod defs;
|
2020-08-26 20:13:14 +00:00
|
|
|
mod from_pyobject;
|
2020-05-07 19:20:34 +00:00
|
|
|
mod konst;
|
2019-02-18 19:07:41 +00:00
|
|
|
mod method;
|
|
|
|
mod module;
|
2020-08-08 07:55:08 +00:00
|
|
|
mod proto_method;
|
2019-02-18 19:07:41 +00:00
|
|
|
mod pyclass;
|
|
|
|
mod pyfunction;
|
|
|
|
mod pyimpl;
|
|
|
|
mod pymethod;
|
|
|
|
mod pyproto;
|
|
|
|
|
2020-08-26 20:13:14 +00:00
|
|
|
pub use from_pyobject::build_derive_from_pyobject;
|
2019-03-22 13:07:33 +00:00
|
|
|
pub use module::{add_fn_to_module, process_functions_in_module, py_init};
|
2019-02-18 19:07:41 +00:00
|
|
|
pub use pyclass::{build_py_class, PyClassArgs};
|
2019-12-17 22:14:28 +00:00
|
|
|
pub use pyfunction::{build_py_function, PyFunctionAttr};
|
2021-03-02 22:34:25 +00:00
|
|
|
pub use pyimpl::{build_py_methods, PyClassMethodsType};
|
2019-02-18 19:07:41 +00:00
|
|
|
pub use pyproto::build_py_proto;
|
|
|
|
pub use utils::get_doc;
|