From 7c983d1afd24285bc5552f54f50fbe3260a7db94 Mon Sep 17 00:00:00 2001 From: Armin Friedl Date: Wed, 1 Jan 2020 19:11:14 +0100 Subject: [PATCH] Optimize release build --- Cargo.toml | 7 ++++++- TODO.org | 2 ++ coffer-server/Cargo.toml | 2 +- coffer-server/src/coffer/keyring.rs | 2 +- coffer-server/src/main.rs | 2 +- 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index dda1788..29ee1b5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,4 +3,9 @@ members = [ "coffer-server", "coffer-client", "coffer-companion" -] \ No newline at end of file +] + +[profile.release] +lto = true +codegen-units = 1 +panic = 'abort' \ No newline at end of file diff --git a/TODO.org b/TODO.org index 329ed8b..12734ce 100644 --- a/TODO.org +++ b/TODO.org @@ -4,6 +4,7 @@ ** TODO Add tests ** TODO Readme * Coffer Server +** TODO Double delete if files not kept ** TODO Add secrets on-the-fly ** TODO Store secrets in secure memory - Not persisted @@ -13,6 +14,7 @@ ** DONE Set environment variables CLOSED: [2019-11-27 Wed 22:51] ** TODO Send key requests encrypted/signed +** TODO Secure Communication * Coffer Companion ** TODO Add Subcommands - [X] Generate master key diff --git a/coffer-server/Cargo.toml b/coffer-server/Cargo.toml index 92ed1b8..9ed64b3 100644 --- a/coffer-server/Cargo.toml +++ b/coffer-server/Cargo.toml @@ -15,4 +15,4 @@ sodiumoxide = "0.2.5" # Communication serde = { version = "1.0", features = ["derive"]} serde_cbor = "0.10.2" -futures = { version = "0.3.1", features = ["thread-pool"]} \ No newline at end of file +futures = { version = "0.3.1", features = ["thread-pool"]} diff --git a/coffer-server/src/coffer/keyring.rs b/coffer-server/src/coffer/keyring.rs index 9604c51..f10de7a 100644 --- a/coffer-server/src/coffer/keyring.rs +++ b/coffer-server/src/coffer/keyring.rs @@ -20,7 +20,7 @@ quick_error! { Cbor(err: serde_cbor::Error) { from() } - Crypto {} + Crypto } } diff --git a/coffer-server/src/main.rs b/coffer-server/src/main.rs index 154d751..7dbc9fc 100644 --- a/coffer-server/src/main.rs +++ b/coffer-server/src/main.rs @@ -36,7 +36,7 @@ struct Args { ip: IpAddr, /// Prevent deletion of key files - #[structopt(short)] + #[structopt(long)] keep_keys: bool }