Skip to content

Commit 4c7905a

Browse files
authored
Optimize DAG-CBOR encode/decode and CAR block parsing (#104)
1 parent 2163f07 commit 4c7905a

3 files changed

Lines changed: 202 additions & 116 deletions

File tree

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ anyhow = "1.0.102"
1919
cid = "0.11.3"
2020
cbor4ii = { version = "1.2.2" }
2121

22+
[build-dependencies]
23+
pyo3-build-config = "0.28.3"
24+
2225
[workspace]
2326
members = [ "profiling" ]
2427

build.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)