Skip to content

Commit 56c34d6

Browse files
ngoldbaumdavidhewitt
authored andcommitted
Document Py_GIL_DISABLED in pyo3-build-config docs (#5810)
1 parent 92bc9ef commit 56c34d6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pyo3-build-config/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ use target_lexicon::OperatingSystem;
3535
/// | ---- | ----------- |
3636
/// | `#[cfg(Py_3_7)]`, `#[cfg(Py_3_8)]`, `#[cfg(Py_3_9)]`, `#[cfg(Py_3_10)]` | These attributes mark code only for a given Python version and up. For example, `#[cfg(Py_3_7)]` marks code which can run on Python 3.7 **and newer**. |
3737
/// | `#[cfg(Py_LIMITED_API)]` | This marks code which is run when compiling with PyO3's `abi3` feature enabled. |
38+
/// | `#[cfg(Py_GIL_DISABLED)]` | This marks code which is run on the free-threaded interpreter. |
3839
/// | `#[cfg(PyPy)]` | This marks code which is run when compiling for PyPy. |
3940
/// | `#[cfg(GraalPy)]` | This marks code which is run when compiling for GraalPy. |
4041
///

0 commit comments

Comments
 (0)