mosquitto-client-wrapper 0.3.1

Rust interface to the Mosquitto MQTT broker client. This is a fork of https://github.com/jsloth/mosquitto-client.
FROM ubuntu:18.04

RUN apt-get update
RUN apt-get install -y curl build-essential llvm clang gcc gcc-7-multilib make cmake lsb-release libssl-dev wget git \
    && apt-get install -qq gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf \
    && rm -rf /var/lib/apt/lists/*

RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"

RUN rustup target add armv7-unknown-linux-gnueabihf

ENV MOSQUITTO_CC=gcc
ENV MOSQUITTO_CROSS_COMPILER=arm-linux-gnueabihf-

WORKDIR app
COPY . .
RUN cargo build --target armv7-unknown-linux-gnueabihf