| 1 | //! This crate contains the implementation of the proc macro attributes |
| 2 | |
| 3 | #![warn (elided_lifetimes_in_paths, unused_lifetimes)] |
| 4 | #![cfg_attr (docsrs, feature(doc_cfg, doc_auto_cfg))] |
| 5 | #![recursion_limit = "1024" ] |
| 6 | |
| 7 | // Listed first so that macros in this module are available in the rest of the crate. |
| 8 | #[macro_use ] |
| 9 | mod utils; |
| 10 | |
| 11 | mod attributes; |
| 12 | mod frompyobject; |
| 13 | mod intopyobject; |
| 14 | mod konst; |
| 15 | mod method; |
| 16 | mod module; |
| 17 | mod params; |
| 18 | mod pyclass; |
| 19 | mod pyfunction; |
| 20 | mod pyimpl; |
| 21 | mod pymethod; |
| 22 | mod pyversions; |
| 23 | mod quotes; |
| 24 | |
| 25 | pub use frompyobject::build_derive_from_pyobject; |
| 26 | pub use intopyobject::build_derive_into_pyobject; |
| 27 | pub use module::{pymodule_function_impl, pymodule_module_impl, PyModuleOptions}; |
| 28 | pub use pyclass::{build_py_class, build_py_enum, PyClassArgs}; |
| 29 | pub use pyfunction::{build_py_function, PyFunctionOptions}; |
| 30 | pub use pyimpl::{build_py_methods, PyClassMethodsType}; |
| 31 | pub use utils::get_doc; |
| 32 | |