From 698690c2cea4dca459006c78f4cdd5090f75b400 Mon Sep 17 00:00:00 2001 From: Rusty Striker Date: Sat, 11 Jun 2022 18:51:02 +0300 Subject: [PATCH] update injector --- stories/injector.html | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/stories/injector.html b/stories/injector.html index 54e5b6f..f683b84 100644 --- a/stories/injector.html +++ b/stories/injector.html @@ -64,6 +64,31 @@ (like i keep the build scripts in the bscripts folder).

+
+

Interesting notes from making it using Rust

+

+ Overall, it is a 188 lines main file, using 0 dependencies(apart from std), +
+ I did a really simple arguments parser, which will prob be a pain + for people who aren't me. +

+

+ Running a command/process is really nice when using the Command + struct, with fun builder functions(and easily lets you read its output) +

+

+ The whole OsStr vs str/String is really annoying, + and made me do a lot of to_str().unwrap() +

+

+ Generally speaking tho, I have 31 unwrap()s in my code, +
+ which I WILL need to remove(at least most of them), +
+ I also have 3 unsafe blocks, 2 for using a static variable, + and another 1 for lossly converting a [u8] to &str. +

+

The original plan