We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2163f07 commit 4c7905aCopy full SHA for 4c7905a
3 files changed
Cargo.toml
@@ -19,6 +19,9 @@ anyhow = "1.0.102"
19
cid = "0.11.3"
20
cbor4ii = { version = "1.2.2" }
21
22
+[build-dependencies]
23
+pyo3-build-config = "0.28.3"
24
+
25
[workspace]
26
members = [ "profiling" ]
27
build.rs
@@ -0,0 +1,9 @@
1
+fn main() {
2
+ if matches!(
3
+ pyo3_build_config::get().implementation,
4
+ pyo3_build_config::PythonImplementation::CPython
5
+ ) {
6
+ println!("cargo:rustc-cfg=CPython");
7
+ }
8
+ println!("cargo:rustc-check-cfg=cfg(CPython)");
9
+}
0 commit comments