docs.rs failed to build uplink-sys-0.2.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
uplink-sys-0.6.1
uplink-sys
This crate provides auto-generated unsafe Rust bindings, through bindgen, to C functions provided by uplink-c, the C interface for the Storj uplink API library.
Building (from repo)
Linux
- Install Go
- Install Rust
- Install GCC and make
sudo apt install build-essential
- Install libclang (required by bindgen for generating platform specific c bindings)
sudo apt install libclang-dev
- Checkout this repo
- Build crate
make build
(fromuplink-sys
directory)
macOS
Building (from crates.io) (TODO ONCE CRATE IS PUBLISHED)
Linux
- Install Go
- Install libclang (required by bindgen for generating platform specific c bindings)
- Add uplink-sys to Cargo.toml
Tests
NOTE the project has been tested on the following operating systems:
* ubuntu
* Version: 20.04.2 LTS
* Processor: Intel® Core™ i7-10510U CPU @ 1.80GHz × 8
* macOS
* Version: 10.15.7
* Processor: 2.6 GHz 6-Core Intel Corei7
Setup
To allow the integrations tests access to the test project, create a file in this directory with the satellite address and api key for running tests.
Do not commit this file to the repo.
test_secrets.txt
:
<satellite_addresss>
<api_key>
Run
make test
Usage
See the examples directory to see how use the uplink-sys
crate.
Below is an example showing how to list buckets using the crate's unsafe C bindings.
// Access parameters
let satellite_address = new.expect;
let api_key = new.expect;
let passphrase = new.expect;
unsafe