Compare commits

..

6 Commits

7 changed files with 16 additions and 2 deletions

14
.cargo/config.toml Normal file
View File

@ -0,0 +1,14 @@
[profile.release]
opt-level = "s"
[target.x86_64-pc-windows-gnu]
rustflags = ["-C", "target-cpu=native", "-C", "codegen-units=8", "-C", "debuginfo=0", "-C", "profile-generate", "-C", "inline-threshold=2000", "-C", "link-arg=-s"]
[target.x86_64-unknown-linux-gnu]
rustflags = ["-C", "target-cpu=native", "-C", "codegen-units=8", "-C", "debuginfo=0", "-C", "profile-generate", "-C", "inline-threshold=2000", "-C", "link-arg=-s"]
[target.i686-pc-windows-gnu]
rustflags = ["-C", "target-cpu=native", "-C", "codegen-units=4", "-C", "debuginfo=0", "-C", "profile-generate", "-C", "inline-threshold=2000", "-C", "link-arg=-s"]
[target.i686-unknown-linux-gnu]
rustflags = ["-C", "target-cpu=native", "-C", "codegen-units=4", "-C", "debuginfo=0", "-C", "profile-generate", "-C", "inline-threshold=2000", "-C", "link-arg=-s"]

View File

@ -1,6 +1,6 @@
[package] [package]
name = "rust_pass" name = "rust_pass"
version = "1.0.0" version = "1.0.1"
edition = "2021" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -21,7 +21,7 @@ fn main() {
// Disallowed_chars is an optional argument // Disallowed_chars is an optional argument
let disallowed_chars: Option<&String> = args.get(2); let disallowed_chars: Option<&String> = args.get(2);
let allowed_chars: String = String::from("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-=`~!@#$%^&*()_+[]\\{}|;':,./<>?"); let allowed_chars: &str = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-=`~!@#$%^&*()_+[]\\{}|;':,./<>?";
let mut allowed_chars_set: HashSet<char> = allowed_chars.chars().collect(); let mut allowed_chars_set: HashSet<char> = allowed_chars.chars().collect();