-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlib.rs
More file actions
49 lines (44 loc) · 1.1 KB
/
lib.rs
File metadata and controls
49 lines (44 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#![warn(
// Base lints.
clippy::all,
// Some pedantic lints.
clippy::pedantic,
// New lints which are cool.
clippy::nursery,
)]
#![
allow(
// I don't care about this.
clippy::module_name_repetitions,
// Yo, the hell you should put
// it in docs, if signature is clear as sky.
clippy::missing_errors_doc,
// Because pythonic way is
// to have many args with defaults.
clippy::too_many_arguments
)]
pub mod exceptions;
pub mod js;
pub mod message;
pub mod nats_cls;
pub mod subscription;
pub mod utils;
#[pyo3::pymodule]
pub mod _inner {
use pyo3::{Bound, PyResult, types::PyModule};
use crate::utils::py::PyModuleSubmoduleExt;
#[pymodule_export]
use super::message::Message;
#[pymodule_export]
use super::nats_cls::NatsCls;
#[pymodule_export]
use super::subscription::Subscription;
#[pymodule_export]
use super::js::pymod as js;
#[pymodule_init]
pub fn init(m: &Bound<'_, PyModule>) -> PyResult<()> {
pyo3_log::init();
m.init_submodules()?;
Ok(())
}
}