Skip to content
/ wraith Public

Rust (Rocket Diesel) web service to accept InSpec JSON scan data

Notifications You must be signed in to change notification settings

burtlo/wraith

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wraith

A web service written in Rust using the rocket-rs (web) and diesel-rs (database) libraries.

Background

I wanted to use Rust to setup a web service that is able to accept a JSON document and then display all that content.

I started with the Building a RESTful CRUD API with Rust article to get started but then modified it to use SQLlite. This required looking at the diesel-rs sqllite examples.

Setup

$ rustup default nightly
$ rustup update && cargo update
$ diesel setup
$ diesel migration run
$ cargo build
$ cargo run

Then view the site http://localhost:8000/scans.

About

Rust (Rocket Diesel) web service to accept InSpec JSON scan data

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages