Rename all-apis with unstable-api
This commit is contained in:
parent
c2f10e2185
commit
1941f4daef
|
@ -82,7 +82,7 @@ jobs:
|
|||
- run: rustup set default-host ${{ matrix.platform.rust-target }}
|
||||
|
||||
- name: Build without default features
|
||||
run: cargo build --no-default-features --verbose
|
||||
run: cargo build --no-default-features --features "unstable-api" --verbose
|
||||
|
||||
- name: Build with default features
|
||||
run: cargo build --features "num-bigint num-complex" --verbose
|
||||
|
|
|
@ -33,11 +33,11 @@ trybuild = "1.0.23"
|
|||
rustversion = "1.0"
|
||||
|
||||
[features]
|
||||
default = ["macros", "all-apis"]
|
||||
default = ["macros", "unstable-api"]
|
||||
macros = ["ctor", "indoc", "inventory", "paste", "pyo3cls", "unindent"]
|
||||
# Enable the use of `not(Py_LIMITED_API)` s.
|
||||
# This is incompatible with abi3(PEP384). See https://www.python.org/dev/peps/pep-0384/ more.
|
||||
all-apis = []
|
||||
# Enable unstable API incompatible with abi3(PEP384).
|
||||
# See https://www.python.org/dev/peps/pep-0384/ more.
|
||||
unstable-api = []
|
||||
|
||||
# Optimizes PyObject to Vec conversion and so on.
|
||||
nightly = []
|
||||
|
|
2
build.rs
2
build.rs
|
@ -757,7 +757,7 @@ fn configure(interpreter_config: &InterpreterConfig) -> Result<String> {
|
|||
bail!("Python 2 is not supported");
|
||||
}
|
||||
|
||||
if env::var_os("CARGO_FEATURE_ALL_APIS").is_none() {
|
||||
if env::var_os("CARGO_FEATURE_UNSTABLE_API").is_none() {
|
||||
println!("cargo:rustc-cfg=Py_LIMITED_API");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue