Skip to content

Commit

Permalink
first impl
Browse files Browse the repository at this point in the history
  • Loading branch information
nilehmann committed May 2, 2023
1 parent 6cd9d17 commit f44d315
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
[package]
edition = "2021"
name = "backtracetk"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
regex = "1.8.1"
termcolor = "1.2.0"
13 changes: 11 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
fn main() {
println!("Hello, world!");
use std::io::{self, Read};

fn main() -> io::Result<()> {
let mut input = String::new();
io::stdin().read_to_string(&mut input)?;

let backtrace = backtracetk::parse(&input);

backtrace.render()?;

Ok(())
}

0 comments on commit f44d315

Please sign in to comment.