pyo3/pyo3-macros-backend/src/lib.rs

30 lines
868 B
Rust
Raw Normal View History

// 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
2022-03-23 12:30:32 +00:00
#![warn(elided_lifetimes_in_paths, unused_lifetimes)]
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
#![recursion_limit = "1024"]
// Listed first so that macros in this module are available in the rest of the crate.
#[macro_use]
mod utils;
mod attributes;
2021-05-16 09:41:59 +00:00
mod deprecations;
mod frompyobject;
mod konst;
mod method;
mod module;
mod params;
mod pyclass;
mod pyfunction;
mod pyimpl;
mod pymethod;
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};
pub use pyclass::{build_py_class, build_py_enum, PyClassArgs};
pub use pyfunction::{build_py_function, PyFunctionOptions};
2021-03-02 22:34:25 +00:00
pub use pyimpl::{build_py_methods, PyClassMethodsType};
pub use utils::get_doc;