1. apt install musl-tools
    1. ln -s /usr/include/x86_64-linux-gnu/asm /usr/include/x86_64-linux-musl/asm \
    2. && ln -s /usr/include/asm-generic /usr/include/x86_64-linux-musl/asm-generic \
    3. && ln -s /usr/include/linux /usr/include/x86_64-linux-musl/linux
    4. mkdir /musl
    5. wget https://github.com/openssl/openssl/archive/OpenSSL_1_1_1f.tar.gz
    6. tar zxvf OpenSSL_1_1_1f.tar.gz
    7. cd openssl-OpenSSL_1_1_1f/
    8. CC="musl-gcc -fPIE -pie" ./Configure no-shared no-async --prefix=/musl --openssldir=/musl/ssl linux-x86_64
    9. make depend
    10. make -j$(nproc)
    11. make install
    1. export PKG_CONFIG_ALLOW_CROSS=1
    2. export OPENSSL_STATIC=true
    3. export OPENSSL_DIR=/musl
    4. cargo build --target x86_64-unknown-linux-musl ...

    参考资料:
    https://qiita.com/liubin/items/6c94f0b61f746c08b74c - How to build openssl-sys crate for musl in Rust