Compare commits
6 Commits
04f1e48564
...
master
Author | SHA1 | Date | |
---|---|---|---|
462c9326a0 | |||
8edc65ff4b | |||
cd39cf6a14 | |||
06f120c050 | |||
b84acc83bc | |||
949436dcff |
14
.cargo/config.toml
Normal file
14
.cargo/config.toml
Normal 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"]
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "rust_pass"
|
||||
version = "1.0.0"
|
||||
version = "1.0.1"
|
||||
edition = "2021"
|
||||
|
||||
# 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.
@ -21,7 +21,7 @@ fn main() {
|
||||
// Disallowed_chars is an optional argument
|
||||
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();
|
||||
|
||||
|
Reference in New Issue
Block a user