diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..0e599c7 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,14 @@ +[profile.release] +opt-level = "s" + +[target.x86_64-pc-windows-msvc] +rustflags = ["-C", "target-cpu=native", "-C", "codegen-units=8", "-C", "debuginfo=0", "-C", "profile-generate", "-C", "inline-threshold=2000"] + +[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"] + +[target.i686-pc-windows-msvc] +rustflags = ["-C", "target-cpu=native", "-C", "codegen-units=4", "-C", "debuginfo=0", "-C", "profile-generate", "-C", "inline-threshold=2000"] + +[target.i686-unknown-linux-gnu] +rustflags = ["-C", "target-cpu=native", "-C", "codegen-units=4", "-C", "debuginfo=0", "-C", "profile-generate", "-C", "inline-threshold=2000"] \ No newline at end of file