erickt / rust-zmq

Rust zeromq bindings.
Apache License 2.0
900 stars 194 forks source link

Activate `zmq::has` #236

Closed CjS77 closed 5 years ago

CjS77 commented 5 years ago

As released, zmq::has will always return None because the compiler flag ZMQ_HAS_ZMQ_HAS wasn't set at all when feature has_zmq was enabled, and was incorrectly set (="1") when it was wrapped.

This PR makes the necessary adjustments to the build script, and adds a test to check that zmq::has is actually being called (i.e. it returns Some(_))

rotty commented 5 years ago

Thanks! I've now tweaked this PR, and retargeted it against the release/v0.8 branch in PR #237.