Skip to content

Commit 239311b

Browse files
authored
Merge pull request #47 from LechevSpace/add-rust-requirements
Add rust toolchain requirements
2 parents f2f269c + 554a161 commit 239311b

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ fn main() {
2222

2323
Use the `python!{..}` macro to write Python code directly in your Rust code.
2424

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+
2528
### Using Rust variables
2629

2730
To reference Rust variables, use `'var`, as shown in the example above.

src/context.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ impl Context {
128128
}
129129
}
130130

131-
/// Add a wrapped #[pyfunction] or #[pymodule] using its own `__name__`.
131+
/// Add a wrapped `#[pyfunction]` or `#[pymodule]` using its own `__name__`.
132132
///
133133
/// Use this with `pyo3::wrap_pyfunction` or `pyo3::wrap_pymodule`.
134134
///
@@ -158,7 +158,7 @@ impl Context {
158158
self.add_wrapped_with_gil(Python::acquire_gil().python(), wrapper);
159159
}
160160

161-
/// Add a wrapped #[pyfunction] or #[pymodule] using its own `__name__`.
161+
/// Add a wrapped `#[pyfunction]` or `#[pymodule]` using its own `__name__`.
162162
///
163163
/// See [Context::add_wrapped].
164164
pub fn add_wrapped_with_gil<'p>(&self, py: Python<'p>, wrapper: &impl Fn(Python) -> PyResult<&PyCFunction>) {

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
//!
1919
//! Use the `python!{..}` macro to write Python code directly in your Rust code.
2020
//!
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+
//!
2124
//! ## Using Rust variables
2225
//!
2326
//! To reference Rust variables, use `'var`, as shown in the example above.

0 commit comments

Comments
 (0)