From 18cd2a109e370ed685d2d946f4dd79879bca1a33 Mon Sep 17 00:00:00 2001 From: Eberhard Beilharz Date: Tue, 28 Jun 2022 17:57:31 +0200 Subject: [PATCH] Update readme Add instructions for building a binary without dependencies. --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/README.md b/README.md index 724cf4d..f9b3fb1 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,33 @@ See [this page](https://developer.chrome.com/extensions/nativeMessaging) for fur keepassxc-proxy listens stdin from keepassxc-browser extension and transfers the data to Unix domain socket `XDG_RUNTIME_DIR` or `/tmp/org.keepassxc.KeePassXC.BrowserServer` which KeePassXC listens. With Windows this is a named pipe under `org.keepassxc.KeePassXC.BrowserServer\`. + +## Building + +The proxy can be built with: + +```bash +cargo build --release +``` + +### Static library + +To build a binary without dependencies (which is useful for running +inside of a flatpak), you'll have to install MUSL libc first: + +```bash +rustup target add x86_64-unknown-linux-musl +``` + +Then build with + +```bash +RUSTFLAGS='-C link-arg=-s' cargo build --release --target x86_64-unknown-linux-musl +``` + +(see [Stackoverflow](https://stackoverflow.com/a/59766875/487503)) +## Copyright + ``` Copyright (C) 2017-2021 Sami Vänttinen Copyright (C) 2017-2018 Andy Brandt