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
|
|
|
|
2022-03-23 12:30:32 +00:00
|
|
|
#![warn(elided_lifetimes_in_paths, unused_lifetimes)]
|
2021-12-22 11:09:16 +00:00
|
|
|
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_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-04-17 21:22:06 +00:00
|
|
|
mod attributes;
|
2021-05-16 09:41:59 +00:00
|
|
|
mod deprecations;
|
2021-12-22 00:29:22 +00:00
|
|
|
mod frompyobject;
|
2020-05-07 19:20:34 +00:00
|
|
|
mod konst;
|
2019-02-18 19:07:41 +00:00
|
|
|
mod method;
|
|
|
|
mod module;
|
2021-06-05 15:04:56 +00:00
|
|
|
mod params;
|
2019-02-18 19:07:41 +00:00
|
|
|
mod pyclass;
|
|
|
|
mod pyfunction;
|
|
|
|
mod pyimpl;
|
|
|
|
mod pymethod;
|
|
|
|
|
2021-12-22 00:29:22 +00:00
|
|
|
pub use frompyobject::build_derive_from_pyobject;
|
2021-12-28 01:25:01 +00:00
|
|
|
pub use module::{process_functions_in_module, pymodule_impl, PyModuleOptions};
|
2021-11-16 19:31:30 +00:00
|
|
|
pub use pyclass::{build_py_class, build_py_enum, PyClassArgs};
|
2021-04-17 21:22:06 +00:00
|
|
|
pub use pyfunction::{build_py_function, PyFunctionOptions};
|
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 utils::get_doc;
|