Skip to content

Commit 9905b1c

Browse files
committed
Set MSRV to 1.88.0 and drop use of unstable feature.
1 parent 91285af commit 9905b1c

File tree

7 files changed

+3
-10
lines changed

7 files changed

+3
-10
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ edition = "2024"
77
repository = "https://github.com/m-ou-se/inline-python"
88
keywords = ["python", "inline", "embed", "macro"]
99
autoexamples = false
10+
rust-version = "1.88.0"
1011

1112
[dependencies]
1213
inline-python-macros = { version = "0.16.0", path = "./macros" }

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ 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-
2825
### Using Rust variables
2926

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

ct-python/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ license = "BSD-2-Clause"
66
edition = "2024"
77
repository = "https://github.com/m-ou-se/inline-python"
88
keywords = ["python", "macro", "generate", "compile-time"]
9+
rust-version = "1.88.0"
910

1011
[lib]
1112
proc-macro = true

ct-python/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@
3838
//!
3939
//! [1]: https://docs.rs/inline-python/#syntax-issues
4040
41-
#![feature(proc_macro_span)]
42-
4341
use proc_macro::{Span, TokenStream};
4442
use pyo3::{PyObject, PyResult, Python, prelude::*};
4543
use std::{ffi::CString, ptr::null_mut, str::FromStr};

macros/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ description = "Macros for the inline-python crate"
55
license = "BSD-2-Clause"
66
edition = "2024"
77
repository = "https://github.com/m-ou-se/inline-python"
8+
rust-version = "1.88.0"
89

910
[lib]
1011
proc-macro = true

macros/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! Helper crate for `inline-python`.
22
3-
#![feature(proc_macro_span)]
4-
53
extern crate proc_macro;
64

75
use proc_macro::{Literal, Span, TokenStream, TokenTree};

src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818
//!
1919
//! Use the `python!{..}` macro to write Python code directly in your Rust code.
2020
//!
21-
//! _NOTE:_ This crate uses the **unstable** [`proc_macro_span` feature](https://github.com/rust-lang/rust/issues/54725),
22-
//! so it will only compile on Rust **nightly**.
23-
//!
2421
//! ## Using Rust variables
2522
//!
2623
//! To reference Rust variables, use `'var`, as shown in the example above.

0 commit comments

Comments
 (0)