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

31 lines
808 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
2021-05-02 19:10:53 +00:00
#![cfg_attr(docsrs, feature(doc_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;
mod defs;
mod from_pyobject;
mod konst;
mod method;
mod module;
mod proto_method;
mod pyclass;
mod pyfunction;
mod pyimpl;
mod pymethod;
mod pyproto;
pub use from_pyobject::build_derive_from_pyobject;
pub use module::{process_functions_in_module, py_init};
pub use pyclass::{build_py_class, 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 pyproto::build_py_proto;
pub use utils::get_doc;