Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Statically link to the Rust library #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ejpcmac
Copy link

@ejpcmac ejpcmac commented Apr 13, 2021

The Rust library was previously statically linked, which meant we had to install the library to be able to run dependent application. Frow now, it will be statically linked to the final binary, enhancing the developer’s and packager’s expercience.

I’ve also added a Makefile to prebuild the library, and updated the instructions in the README.md.

To ease a bit more the setup of an environment, I’ve commited my shell.nix and added instruction to run the Nix shell. If you don’t want this in your repo, or you are OK with it but don’t want the instructions in the README.md, just let me know and I’ll reset the branch prior to my last commit.

@nanu-c
Copy link
Owner

nanu-c commented Apr 14, 2021

Hey @ejpcmac thank you for your contribution. Before i can merge this, we have to make sure, that it works together with the https://github.com/signal-golang/textsecure/cmd/textsecure
Maybe you can open another pull request there?

@ejpcmac
Copy link
Author

ejpcmac commented Apr 15, 2021

@nanu-c Sure! It works on my side. What should I do in the other repo? Update the go.mod to use my branch instead, and update again once this PR has been merged?

ejpcmac added 2 commits April 15, 2021 08:49
The Rust library was previously statically linked, which meant we had to install
the library to be able to run dependent application. Frow now, it will be
statically linked to the final binary, enhancing the developer’s and packager’s
expercience.

I’ve also added a Makefile to prebuild the library, and updated the instructions
in the README.md
@ejpcmac
Copy link
Author

ejpcmac commented Apr 15, 2021

I’ve rebased on top of your last changes, and I’m now running the latest Axolotl with groups v2 support linked statically to zkgroup on my PinePhone. I’ve seen a warning when linking however, so I’ll investigate later today.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants