Giter Club home page Giter Club logo

ubus-rs's Introduction

ubus-rs

(prototype)

Expose ubus library to build OpenWRT Rust apps.

Compile the project

Requires cross installed.

⚠️ Has git submodules. ⚠️

Tested on:

  • Windows WSL (requires Docker)
  • Windows (does not work/requires Docker)
cross build --target mips-unknown-linux-musl -p ubus-cli

Then scp the executable files on target/mips-unknown-linux-musl

Using this as a library to build other projects

Add this as a dependency:

[dependencies]
ubus-sys = { git = "https://github.com/bltavares/ubus-rs" }

Copy the custom Cross.toml file from this project to yours, in order to use an image that works with OpenWRT for cross-compilation.

Then it should be possible to run:

cross build --target mips-unknown-linux-musl

No promises there...

Release

cross build --target mips-unknown-linux-musl -p ubus-cli --release
docker run --rm -v ${PWD}/target/mips-unknown-linux-musl/release:/target bltavares/rust-cross-mips-openwrt mips-linux-muslsf-strip /target/ubus-cli
scp target/mips-unknown-linux-musl/release/ubus-cli [email protected]:~/ubus-cli

ubus-rs's People

Contributors

bltavares avatar jm-observer 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.