skip to Main Content

aarch64-alpine-linux-musl/bin/ld: cannot find -lpq – Docker

when I build the rust app using the alpine as the base image using this command: docker build -f ./Dockerfile -t="reddwarf-pro/reddwarf-admin:v.1.0.0" . show error like this: #14 222.9 = note: /usr/lib/gcc/aarch64-alpine-linux-musl/10.3.1/../../../../aarch64-alpine-linux-musl/bin/ld: cannot find -lpq #14 222.9 collect2: error: ld returned…

VIEW QUESTION

Using the cursor in mongodb-rust sync

I took the code from the documentation, but it doesn't work. pub fn get_countries(&self) { let cursor = self.countries.find(None, None); for doc in cursor { println!("{}", doc?) } } mongodb::sync::Cursor<bson::Document> doesn't implement std::fmt::Display mongodb::sync::Cursor<bson::Document> cannot be formatted with the default…

VIEW QUESTION
Back To Top
Search