Skip to content

Commit c675070

Browse files
Change feature name from "pyo3" to "python"
1 parent 59949fa commit c675070

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

crates/lib/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ tracing-config = ["tracing", "qcs-api-client-common/tracing-config", "qcs-api-cl
1616
libquil = ["dep:libquil-sys"]
1717
grpc-web = ["qcs-api-client-grpc/grpc-web"]
1818
tracing-opentelemetry = ["tracing-config", "qcs-api-client-grpc/tracing-opentelemetry", "qcs-api-client-openapi/tracing-opentelemetry"]
19-
pyo3 = ["dep:pyo3"]
19+
python = ["dep:pyo3"]
2020
experimental = []
2121

2222
[dependencies]

crates/lib/src/qpu/translation.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
use std::{collections::HashMap, time::Duration};
55

6-
#[cfg(feature = "pyo3")]
6+
#[cfg(feature = "python")]
77
use pyo3::{exceptions::PyValueError, PyErr};
88
use qcs_api_client_grpc::{
99
models::controller::EncryptedControllerJob,
@@ -31,7 +31,7 @@ pub enum Error {
3131
ClientTimeout(#[from] Elapsed),
3232
}
3333

34-
#[cfg(feature = "pyo3")]
34+
#[cfg(feature = "python")]
3535
impl From<Error> for PyErr {
3636
fn from(value: Error) -> Self {
3737
let message = value.to_string();

crates/python/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ crate-type = ["cdylib", "rlib"]
2222
async-trait = "0.1.73"
2323
futures-util = "0.3.24"
2424
# TODO #507: automatically update the version when publishing
25-
qcs = { version = "0.25", path = "../lib", features = ["tracing-opentelemetry", "experimental", "pyo3"] }
25+
qcs = { version = "0.25", path = "../lib", features = ["tracing-opentelemetry", "experimental", "python"] }
2626
qcs-api-client-common = { workspace = true, features = ["python"] }
2727
qcs-api-client-grpc.workspace = true
2828
qcs-api-client-openapi.workspace = true

0 commit comments

Comments
 (0)