Dart wrapper for the Storj Uplink GO library
This repository currently relies on you to compile a verision of uplink-c
TODO: Put a short description of the package here that helps potential users know whether this package might be useful for them.
TODO: List what your package can do. Maybe include images, gifs, or videos.
- install go, add it to your path
- clone uplink-c to a directory of your choice
- from within that repository directory, run
go build -o libuplinkc.so -buildmode=c-shared
. (For more info about building on different platforms, see https://github.com/storj-thirdparty/uplink-python#initial-set-up-important) - Copy the resulting binary
libuplinkc.so
to a directory of your choice, and specify the path in the mandatory initial call toloadDynamicLibrary(String path)
, for exampleloadDynamicLibrary('/home/username/libuplinkc.so');
There is a short example in the /example
folder.
TODO: Include short and useful examples for package users. Add longer examples
to /example
folder.
const like = 'sample';
TODO: Tell users more about the package: where to find more information, how to contribute to the package, how to file issues, what response they can expect from the package authors, and more.
If you wish contribute to regenerate the generated_bindings.dart
. You need to also copy over libuplinkc.h
, uplink_definitions.h
, uplink_compat.h
from uplink-c. Then you can run dart run ffigen
.