Code Monkey home page Code Monkey logo

moss's Introduction

moss-rs

A rewrite of the Serpent OS tooling in Rust, enabling a robust implementation befitting Serpent and Solus

We will initially focus on moss and stone (library), restoring parity while focusing on some key areas

  • Version agnostic read APIs
  • Decoupled repository indices with support for format upgrades
  • Asynchronous I/O (specifically fetches)
  • Memory consumption + safety
  • Upgrade of installations

When the tooling is at a point exceeding the functionality of our first version, focus will shift to the build infrastructure as well as the Rust version of boulder (.stone build tooling).

It is recommended to use an up to date version of Rust via rustup.

Progress:

  • Read support for .stone
  • Repository manipulation
  • Plugin system for layered graph of dependencies
  • Search support
  • Transactions
  • Installation support
  • Removal support
  • sync support (See: serpent-os#73 (comment))
  • Trigger integration (usysconf-rs)
  • GC / cleanups of latent states
  • Features (previously: Subscriptions)

Test libstone

$ cargo test

Building moss

$ cargo build -p moss
$ cargo run -p moss -- $args

Experiment

Remember to use the -D sosroot argument to specify a root directory, otherwise moss will happily eat your operating system.

cargo build --release

# create the sosroot/ directory
mkdir -pv sosroot/

# Add the volatile repo
./target/release/moss -D sosroot/ repo add volatile https://dev.serpentos.com/volatile/x86_64/stone.index

# List packages
./target/release/moss -D sosroot/ list available

# Install something
./target/release/moss -D sosroot/ install systemd bash libx11-32bit

Contributing changes

Please ensure all tests are running locally without issue:

$ cargo test

# Prior to commiting a change:
$ cargo fmt

# Prior to pushing anything, check:
$ cargo clippy

License

moss-rs is available under the terms of the MPL-2.0

moss's People

Contributors

dependabot[bot] avatar der-eismann avatar ermo avatar gzgavinzhao avatar ikeycode avatar it-a-me avatar livingsilver94 avatar tarkah avatar

Watchers

 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.