#libzmq #zmq #zeromq

build zeromq-src

Source code and logic to build ZeroMQ from source

11 releases

0.2.5+4.3.4 Mar 25, 2023
0.2.4+4.3.4 Dec 16, 2022
0.2.2+4.3.4 Mar 3, 2022
0.1.10+4.3.2 May 9, 2020
0.1.7+4.3.2 Jul 8, 2019

#95 in Math

Download history 4556/week @ 2023-02-12 4316/week @ 2023-02-19 4967/week @ 2023-02-26 5516/week @ 2023-03-05 5797/week @ 2023-03-12 5955/week @ 2023-03-19 6092/week @ 2023-03-26 4786/week @ 2023-04-02 6146/week @ 2023-04-09 6613/week @ 2023-04-16 7207/week @ 2023-04-23 7887/week @ 2023-04-30 6631/week @ 2023-05-07 6298/week @ 2023-05-14 7230/week @ 2023-05-21 7155/week @ 2023-05-28

27,664 downloads per month
Used in 296 crates (3 directly)


59K SLoC

C++ 45K SLoC // 0.2% comments Visual Studio Project 5K SLoC C 4K SLoC // 0.1% comments Automake 1.5K SLoC // 0.0% comments Visual Studio Solution 1K SLoC Shell 762 SLoC // 0.2% comments Rust 354 SLoC // 0.1% comments RPM Specfile 242 SLoC // 0.1% comments Batch 101 SLoC // 0.1% comments Python 40 SLoC // 0.3% comments

Apache 2.0 licensed MIT licensed

zeromq-src-rs - Source code and logic to build libzmq from source

This crate is intended to be consumed by a sys crate.

See testcrate-static for a usage example.


  • A c compiler.

Env Vars

  • DEP_ZMQ_INCLUDE is path to the include directory.
  • DEP_ZMQ_LIB is the path to the lib directory.
  • DEP_ZMQ_OUT is the path to the out directory (root).


  • The master branch uses the libzmq latest_release branch and is considered a stable branch. When a stable release is published, the version will take the form of VERSION+BUILD_METADATA.


While libzmq is license under LGPL, is has a linking exception, which means that this crate does not need to conform to the usual LGPL conditions. Indeed this crate does not modify the source code in any way and simply allows linking to libzmq. To quote from the zeromq website:

ZeroMQ is safe for use in close-source applications. The LGPL share-alike terms do not apply to applications built on top of ZeroMQ. You do not need a commercial license. The LGPL applies to ZeroMQ's own source code, not your applications. Many commercial applications use ZeroMQ.

Thus this project is effectively licensed under either of

at your option.



Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in zeromq-src-rs by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


~36K SLoC