Skip to content

Commit dfeceb7

Browse files
split out python feature from python-extension
1 parent 377af52 commit dfeceb7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ categories = ["algorithms", "data-structures", "science"]
1414

1515
[features]
1616
default = []
17-
python-extension = ["pyo3", "pyo3/extension-module"]
17+
python = ["pyo3"]
18+
python-extension = ["python", "pyo3/extension-module"]
1819

1920
[lib]
2021
name = "algebraics"

src/python.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SPDX-License-Identifier: LGPL-2.1-or-later
22
// See Notices.txt for copyright information
33

4-
#![cfg(feature = "python-extension")]
4+
#![cfg(feature = "python")]
55

66
use crate::algebraic_numbers::RealAlgebraicNumber;
77
use crate::traits::ExactDivAssign;

0 commit comments

Comments
 (0)