mirror of
https://github.com/logos-messaging/sds-go-bindings.git
synced 2026-01-02 14:13:08 +00:00
updating readme
This commit is contained in:
parent
d3781a636a
commit
ef141fa420
46
README.md
46
README.md
@ -1 +1,45 @@
|
||||
# sds-go-bindings
|
||||
# SDS Go Bindings
|
||||
|
||||
This repository provides Go bindings for the SDS library, enabling seamless integration with Go projects.
|
||||
|
||||
## Installation
|
||||
|
||||
To build the required dependencies for this module, the `make` command needs to be executed. If you are integrating this module into another project via `go get`, ensure that you navigate to the `sds-go-bindings/sds` directory and run `make`.
|
||||
|
||||
### Steps to Install
|
||||
|
||||
Follow these steps to install and set up the module:
|
||||
|
||||
1. Retrieve the module using `go get`:
|
||||
```
|
||||
go get -u github.com/waku-org/waku-go-bindings
|
||||
```
|
||||
2. Navigate to the module's directory:
|
||||
```
|
||||
cd $(go list -m -f '{{.Dir}}' github.com/waku-org/sds-go-bindings)
|
||||
```
|
||||
3. Prepare third_party directory which will clone `nim-sds`
|
||||
```
|
||||
sudo mkdir third_party
|
||||
sudo chown $USER third_party
|
||||
```
|
||||
4. Build the dependencies:
|
||||
```
|
||||
make -C sds
|
||||
```
|
||||
|
||||
Now the module is ready for use in your project.
|
||||
|
||||
### Note
|
||||
|
||||
In order to easily build the libsds library on demand, it is recommended to add the following target in your project's Makefile:
|
||||
|
||||
```
|
||||
LIBSDS_DEP_PATH=$(shell go list -m -f '{{.Dir}}' github.com/waku-org/sds-go-bindings)
|
||||
|
||||
buildlib:
|
||||
cd $(LIBSDS_DEP_PATH) &&\
|
||||
sudo mkdir -p third_party &&\
|
||||
sudo chown $(USER) third_party &&\
|
||||
make -C sds
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user