update injector

This commit is contained in:
Rusty Striker 2022-06-11 18:51:02 +03:00
parent da2ed09c19
commit 698690c2ce

View file

@ -64,6 +64,31 @@
(like i keep the build scripts in the <i>bscripts</i> folder).
</p>
</div>
<div>
<h3>Interesting notes from making it using Rust</h3>
<p>
Overall, it is a 188 lines main file, using 0 dependencies(apart from std),
<br>
I did a <i>really</i> simple arguments parser, which will prob be a pain
for people who aren't me.
</p>
<p>
Running a command/process is really nice when using the <code>Command</code>
struct, with fun builder functions(and easily lets you read its output)
</p>
<p>
The whole <code>OsStr</code> vs <code>str/String</code> is really annoying,
and made me do a lot of <code>to_str().unwrap()</code>
</p>
<p>
Generally speaking tho, I have 31 <code>unwrap()</code>s in my code,
<br>
which I WILL need to remove(at least most of them),
<br>
I also have 3 <code>unsafe</code> blocks, 2 for using a static variable,
and another 1 for lossly converting a <code>[u8]</code> to <code>&str</code>.
</p>
</div>
<div>
<h3>The original plan</h3>
<p>