GithubHelp home page GithubHelp logo

ubcuas / libuuas Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 37.79 MB

Multi-language library used to consolidate common functionality

License: GNU General Public License v3.0

Dockerfile 1.35% Makefile 2.48% Python 7.16% Shell 0.04% Rust 56.57% C++ 30.26% CMake 2.13%

libuuas's Introduction

LIBUUAS

LIBUUAS is our multi-language library used to consolidate common functionality.

Dependencies

Docker:

  • Docker

Local:

  • Rust + Cargo
  • Python + Pip
  • CMake
  • GCC or Clang
  • Make

Building the Library

x86-64

Locally, you build the library on x86 by running

make build

followed by

make install

and that should do the trick for the Rust, Python, and C++ components of the library.

As for building the Docker images, you can run

make docker

Take a look at the Docker multiarch directives if need be, but you shouldn't have to use them for the purposes of this library when considering the current state of our system.

ARMv7 (O-Droid)

Python, because it uses a C++ binding library called cppyy, does not run on ARMv7 since the compilation process is extremely tedious. Also, as of Feb. 2022, no parts of our system need the Python part of Libuuas to run on the O-Droid.

To build and install only the Rust and C++ components of the library on ARMv7, you run the following commands:

make build-cpp
make build-rust

Then to install,

make install-cpp
make install-rust

Other useful Makefile directives

A full list of make commands can be shown:

make list

Running tests

Since the library has no executable as its own, testing requires using a special interactive terminal to run tests. Or, you can run them with your local system configuration.

Currently, only the Python tests are Dockerized. Run this command to run Python tests: make test-py

Usage

Since the library has no executable of it's own, it's only usage is to act as a dependency for other services. By building the docker images, docker will tag them as the latest. Any docker based service can then be rebuilt, and will use the newly built docker images as the base.

Some services will require libuuas to be installed locally when they are built locally. Use the install commands above to the same effect.

Troubleshooting

Contact Eric Mikulin

libuuas's People

Contributors

erismik avatar yektaataozden avatar neneal avatar

Watchers

Elio Di Nino avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.