Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/mardiros/rustaman

A Templating REST Client
https://github.com/mardiros/rustaman

gtk-rs gtk3 gui relm rest-client rust

Last synced: 2 months ago
JSON representation

A Templating REST Client

Awesome Lists containing this project

README

        

# Rustaman

[![dependency status](https://deps.rs/repo/github/mardiros/rustaman/status.svg)](https://deps.rs/repo/github/mardiros/rustaman)

A Template based HTTP client.

## Status

unstable/under development

## Install on Archlinux

You can install the package `rustaman-git` from [AUR](https://aur.archlinux.org/packages/rustaman-git).

## Install from source

You must have GTK 4 installed on your OS to get it working.
The GTK SourveView 5 has to be installed too.

### Development Environment Setup for Archlinux

```bash
sudo pacman -Sy gtk4 gtksourceview5 openssl
```

### Development Environment Setup for Ubuntu

You must have libglib2.0-dev, libcairo2-dev,libpango1.0-dev,libgraphene-1.0-dev,
libgdk-pixbuf2.0-dev,libgtk-4-dev,libadwaita-1-dev,libgtksourceview-5-dev installed on
your OS to get it working

```bash
sudo apt-get update
sudo apt-get install libglib2.0-dev \
libcairo2-dev \
libpango1.0-dev \
libgraphene-1.0-dev \
libgdk-pixbuf2.0-dev \
libgtk-4-dev \
libadwaita-1-dev \
libgtksourceview-5-dev
```

### Clone the repository

```
git clone https://github.com/mardiros/rustaman.git
cd rustaman
```

### Copy assets for syntax highlighting

#### On Linux

```
mkdir -p ~/.config/rustaman
cp assets/* ~/.config/rustaman
```

#### On MacOS

```
mkdir $HOME/Library/Preferences/rustaman
cp assets/* $HOME/Library/Preferences/rustaman
```

### Build
```
cargo build
```

Or in release mode:

```
cargo build --release
```

### Run with logging info

```
RUST_BACKTRACE=1 RUST_LOG=rustaman=debug cargo run
```

Or in release mode with the error level:

```
RUST_BACKTRACE=1 RUST_LOG=rustaman=error cargo run --release
```