1 unstable release
Uses old Rust 2015
0.1.1 | Jul 10, 2018 |
---|---|
0.1.0 |
|
#22 in #stack-overflow
68 downloads per month
12KB
240 lines
resa
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