#client #transport #previous #unofficial #interface #cd #core-mqtt

sys core-mqtt-sys

coreMQTT client library in rust (unofficial)

2 releases

0.1.1 Dec 19, 2021
0.1.0 Dec 19, 2021

#5 in #previous


Used in core-mqtt-agent

MIT license

795KB
6K SLoC

C 4.5K SLoC // 0.3% comments Rust 1.5K SLoC // 0.0% comments D 80 SLoC TypeScript 2 SLoC

Contains (static library, 58KB) coreMQTT/build/lib/libcore_mqtt.a, (ELF exe/lib, 17KB) CMakeDetermineCompilerABI_C.bin, (ELF exe/lib, 17KB) a.out, (ELF exe/lib, 27KB) core_mqtt.c.o, (ELF exe/lib, 20KB) core_mqtt_serializer.c.o, (ELF exe/lib, 11KB) core_mqtt_state.c.o

core-mqtt-sys

coreMQTT update

Instructions for updating to new coreMQTT source code releases in core-mqtt-sys/:

  1. Wipe out coreMQTT/ and replace it with the contents of the distribution tarball.
  2. Cherry-pick any local changes from the previous version.
  3. Build coreMQTT to generate libcore_mqtt.a, and update libcore_mqtt.a on your system.
cd coreMQTT/
rm -rf build && mkdir build
cd build/
cp ../../CMakeLists.txt ../
cmake ..
make
sudo cp lib/libcore_mqtt.a /usr/lib/
  1. copy core_mqtt_config_defaults.h as core_mqtt_config_defaults.h.
cd ../source/include/
cp core_mqtt_config_defaults.h core_mqtt_config.h
cp ../interface/transport_interface.h ./

cargo build
cargo test
  1. Update Cargo.toml version number.

No runtime deps

~0–1.9MB
~36K SLoC