#client #manager #package #components #ocean

oceanpkg

Client library for the Ocean package manager

11 releases

✓ Uses Rust 2018 edition

0.0.11 Dec 15, 2019
0.0.9 Dec 9, 2019
0.0.7 Nov 29, 2019
0.0.0 May 25, 2019
Download history 18/week @ 2020-01-18 2/week @ 2020-02-01 11/week @ 2020-02-08 46/week @ 2020-02-15 88/week @ 2020-02-22 22/week @ 2020-03-07 11/week @ 2020-03-14 33/week @ 2020-03-21 20/week @ 2020-03-28 13/week @ 2020-04-04 66/week @ 2020-04-11 1/week @ 2020-04-25 11/week @ 2020-05-02

104 downloads per month

AGPL-3.0-only

130KB
3K SLoC

Ruby HTML 3K SLoC // 0.2% comments Rust 64 SLoC // 0.5% comments
Ocean logo

Ocean Library

Travis CI badge Crates.io badge

The oceanpkg library serves as core reusable components for:

  • The ocean CLI client
  • Backend web services

Note: All shell commands assume that the current working directory is lib. This can be done by running cd lib to "change directory" from the root folder.

Install

This library is written in Rust and is meant to be used within a cargo project. See rustup.rs for installing Rust and cargo.

It is made available on crates.io and can be used by adding the following to your project's Cargo.toml:

[dependencies]
oceanpkg = "0.0.11"

and this to your crate root (main.rs or lib.rs):

extern crate oceanpkg;

Usage

See documentation.

Testing

Various test cases are covered throughout this library. They can all be found by searching for mod tests within the lib folder.

To perform these tests, simply run:

cargo test

Dependencies

~4–6.5MB
~157K SLoC