File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ fn main() {
22
22
23
23
Use the ` python!{..} ` macro to write Python code directly in your Rust code.
24
24
25
+ _ NOTE:_ Rust ** nightly** toolchain is required. Feature ` proc_macro_span ` is still unstable, for more details check out [ issue #54725 -
26
+ Tracking issue for ` proc_macro::Span ` inspection APIs] ( https://github.com/rust-lang/rust/issues/54725 )
27
+
25
28
### Using Rust variables
26
29
27
30
To reference Rust variables, use ` 'var ` , as shown in the example above.
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ impl Context {
128
128
}
129
129
}
130
130
131
- /// Add a wrapped #[pyfunction] or #[pymodule] using its own `__name__`.
131
+ /// Add a wrapped ` #[pyfunction]` or ` #[pymodule]` using its own `__name__`.
132
132
///
133
133
/// Use this with `pyo3::wrap_pyfunction` or `pyo3::wrap_pymodule`.
134
134
///
@@ -158,7 +158,7 @@ impl Context {
158
158
self . add_wrapped_with_gil ( Python :: acquire_gil ( ) . python ( ) , wrapper) ;
159
159
}
160
160
161
- /// Add a wrapped #[pyfunction] or #[pymodule] using its own `__name__`.
161
+ /// Add a wrapped ` #[pyfunction]` or ` #[pymodule]` using its own `__name__`.
162
162
///
163
163
/// See [Context::add_wrapped].
164
164
pub fn add_wrapped_with_gil < ' p > ( & self , py : Python < ' p > , wrapper : & impl Fn ( Python ) -> PyResult < & PyCFunction > ) {
Original file line number Diff line number Diff line change 18
18
//!
19
19
//! Use the `python!{..}` macro to write Python code directly in your Rust code.
20
20
//!
21
+ //! _NOTE:_ Rust **nightly** toolchain is required. Feature `proc_macro_span` is still unstable,
22
+ //! for more details check out [issue #54725](https://github.com/rust-lang/rust/issues/54725) - Tracking issue for `proc_macro::Span` inspection APIs
23
+ //!
21
24
//! ## Using Rust variables
22
25
//!
23
26
//! To reference Rust variables, use `'var`, as shown in the example above.
You can’t perform that action at this time.
0 commit comments