| Crates.io | rs-broker |
| lib.rs | rs-broker |
| version | 1.0.2 |
| created_at | 2025-12-10 02:42:57.992866+00 |
| updated_at | 2025-12-22 01:22:01.591037+00 |
| description | rust broker |
| homepage | |
| repository | https://github.com/rs-god/rs-broker |
| max_upload_size | |
| id | 1977262 |
| size | 49,951 |
mq broker,eg:kafka or redis
please see examples or https://github.com/daheige/rs-broker-demo
brew install pkgconf
brew install zlib
brew install librdkafka
apt-get install -y build-essential libcurl4-openssl-dev libssl-dev zlib1g-dev pkg-config wget curl
cd /opt && wget https://github.com/confluentinc/librdkafka/archive/refs/tags/v2.12.1.tar.gz
tar -zxf v2.12.1.tar.gz && cd /opt/librdkafka-2.12.1 && mkdir build && cd build && cmake ..
make && make install
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
export PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1
建议将上面的环境变量设置放入~/.bash_profile文件,然后执行source ~/.bash_profile生效。
pkg-config --modversion rdkafka