From 871fe65187e369cf9bd0119f5c967340075aa5b7 Mon Sep 17 00:00:00 2001 From: Guangzong Chen Date: Tue, 5 Oct 2021 22:59:18 -0400 Subject: [PATCH] update build info and strip --- .cargo/config | 2 ++ Cargo.toml | 11 +++++++++-- src/test.ui | 28 +++++++++++++++++++++++++++- 3 files changed, 38 insertions(+), 3 deletions(-) create mode 100644 .cargo/config diff --git a/.cargo/config b/.cargo/config new file mode 100644 index 0000000..ba54493 --- /dev/null +++ b/.cargo/config @@ -0,0 +1,2 @@ +[build] +target = "x86_64-pc-windows-gnu" diff --git a/Cargo.toml b/Cargo.toml index 0a9745f..599fca1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,8 @@ +cargo-features=["strip"] [package] name = "serial_communication_tool_v2" version = "0.1.0" -edition = "2021" +edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -20,4 +21,10 @@ closure = "0.3.0" opt-level = 'z' lto = true codegen-units = 1 -panic = 'abort' \ No newline at end of file +panic = 'abort' +strip = "debuginfo" +#[[bin]] +#name = "win_serial_comm_tool" +#target = "x86_64-pc-windows-gnu" +#path = "src/main.rs" + diff --git a/src/test.ui b/src/test.ui index 85ace61..b1a5343 100644 --- a/src/test.ui +++ b/src/test.ui @@ -4,6 +4,7 @@ False + network-server True @@ -15,6 +16,7 @@ False 300 400 + network-server True @@ -242,7 +244,6 @@ False True 5 - True @@ -250,6 +251,11 @@ True 115200 + + False + True + 1 + @@ -258,6 +264,11 @@ True 8 + + False + True + 2 + @@ -266,6 +277,11 @@ True None + + False + True + 3 + @@ -274,8 +290,18 @@ True 1 + + False + True + 4 + + + False + True + 3 +