#stack-overflow #compiler-error #search #platform #issue #rest #interface

bin+lib resa

Modular Rest interface for searching similar compiler errors to get possible solutions

1 unstable release

Uses old Rust 2015

0.1.1 Jul 10, 2018
0.1.0 Jul 1, 2018

#22 in #stack-overflow

Download history 4/week @ 2024-09-21 5/week @ 2024-09-28

68 downloads per month

Unlicense

12KB
240 lines

resa Build Status

Rust API for error searching on particular platform like i.e StackOverflow. The main purpose is to decrease the time for searching issues on certain platforms.

Installation

Apply changes on your Cargo.toml

[dependencies]
resa = "0.1.0"

Or install the binary with

cargo install resa

API Example usage

extern crate resa;
use resa::*;

fn main(){
    let mut s: StackOverflow = StackOverflow::search("Compiler Error")
                            .filter(3);

    for issues in s.items{
        println!("(:?)", issues);
    }
}

lib.rs:

General

A rust written REST search API for error searching.

Example Usage

An example usage of this crate by using the StackOverflow REST API

extern crate resa;
use resa::*;
let result = resa::stackoverflow::StackOverflow::search("Compiler Error");

Test

Try the API by using the binary resa on following example:

fn main() {
    let v = vec![1, 2, 3];
    let v2 = v;
    println!("v[0] is: {}", v[0]);
    const C: i32 = 2;
    static CONST_REF: &'static mut i32 = &mut C;
   }
resa -f -r 3 fail.rs

Dependencies

~19–29MB
~505K SLoC