This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[macro_export] | |
macro_rules! paf { | |
($s: expr) => { | |
print!("{}", $s); | |
std::io::Write::flush(&mut std::io::stdout()).expect("Failed to flush stdout"); | |
}; | |
} | |
#[derive(Debug)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::io::{Read, Write}; | |
use std::net::TcpStream; | |
use log::*; | |
static MESSAGE: &str = "exit"; | |
fn main() { | |
log4rs::init_file("resources/log4rs.yml", Default::default()).unwrap(); | |
debug!("log4rs successfully initialized!"); | |
let mut stream = TcpStream::connect("localhost:8010").unwrap(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use crosher::hash_operations; | |
use std::{ | |
ffi::OsStr, | |
fs::{self, File}, | |
io::{BufRead, BufReader, Read}, | |
path::Path, | |
process, | |
}; | |
fn main() { |