An open API service indexing awesome lists of open source software.

https://github.com/croc-code/aurora-rust-helloworld

The simplest Rust project for Aurora OS
https://github.com/croc-code/aurora-rust-helloworld

Last synced: 3 months ago
JSON representation

The simplest Rust project for Aurora OS

Awesome Lists containing this project

README

        

# Hello-World App in Rust for Aurora OS

[![Build Status](https://github.com/crocinc/aurora-rust-helloworld/workflows/Build/badge.svg)](https://github.com/crocinc/aurora-rust-helloworld/actions)

This is an example of the simplest application written in Rust to be run on the mobile Aurora OS.

# Prerequisites

* Ubuntu Linux host OS
* Rust installed (see https://rustup.rs for details)
* `make`

# Build

* Prepare:

```
make prepare
```

* Compile:

```
make
# or
make release
```

* Build RPM-package

```
make rpm
```

Output .rpm file is in `target/armv7-unknown-linux-gnueabihf/release/rpmbuild/RPMS/armv7hl` directory.

* Copy to a mobile device (without package signing):

```
make install
```

# Install and Run

After package signing it is necessary to copy it to the target device and install onto the Aurora OS:

```
$ devel-su
# pkcon install-local ./aurora-rust-helloworld-*.armv7hl.rpm
```

Run:

```
$ aurora-rust-helloworld
```

# License

Source code is licensed under the [MIT license](LICENSE).