Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

Commit

Permalink
Use vendored zmq
Browse files Browse the repository at this point in the history
Also, don't use pyo3-log as it can deadlock - it needs the GIL...
  • Loading branch information
sk1p committed Aug 15, 2022
1 parent 7abbdfd commit 4baf08a
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
25 changes: 25 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ authors = ["Alexander Clausen <a.clausen@fz-juelich.de>"]
license = "MIT"
version = "0.1.0"
edition = "2021"
readme = "README.md"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
Expand All @@ -26,7 +27,7 @@ pyo3-log = "0.6.0"
serde = { version = "1.0.143", features = ["derive"] }
serde_json = "1.0.83"
spin_sleep = "1.1.1"
zmq = "0.9.2"
zmq = { version = "0.9.2", features = ["vendored"] }

[profile.release]
debug = true
4 changes: 3 additions & 1 deletion src/dectris_py.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ use zmq::{Message, Socket};

#[pymodule]
fn libertem_dectris(py: Python, m: &PyModule) -> PyResult<()> {
pyo3_log::init();
// FIXME: logging integration deadlocks on close(), when trying to acquire
// the GIL
// pyo3_log::init();

m.add_class::<Frame>().unwrap();
m.add_class::<FrameIterator>().unwrap();
Expand Down

0 comments on commit 4baf08a

Please sign in to comment.