commit 022ece563e170130a5910c0465cb8e8ec5c74f93
parent 78aab3fe80bbf2b94c6ed91392e6ddcc17cb0f67
Author: Antoine A <>
Date: Thu, 2 Apr 2026 10:52:44 +0200
common: optimize executable size and improve ci
Diffstat:
3 files changed, 8 insertions(+), 12 deletions(-)
diff --git a/Cargo.toml b/Cargo.toml
@@ -23,6 +23,10 @@ license-file = "COPYING"
[profile.dev]
debug = true
+[profile.release]
+lto = "fat"
+codegen-units = 1
+
[workspace.dependencies]
thiserror = "2.0"
serde_json = "1.0"
diff --git a/common/taler-api/src/subject.rs b/common/taler-api/src/subject.rs
@@ -49,11 +49,11 @@ impl IncomingSubject {
}
}
- pub fn key(&self) -> &[u8] {
+ pub fn key(&self) -> &EddsaPublicKey {
match self {
IncomingSubject::Kyc(key)
| IncomingSubject::Reserve(key)
- | IncomingSubject::Map(key) => key.as_ref(),
+ | IncomingSubject::Map(key) => key,
IncomingSubject::AdminBalanceAdjust => panic!("Admin balance adjust"),
}
}
diff --git a/contrib/ci/jobs/2-test/job.sh b/contrib/ci/jobs/2-test/job.sh
@@ -13,12 +13,4 @@ sudo -u postgres pg_ctlcluster 17 main start
sudo -u postgres createuser root --superuser
sudo -u postgres createdb -O root taler_rust_check
-check_command()
-{
- make check &> test-suite.log
-}
-
-if ! check_command ; then
- cat test-suite.log
- exit 1
-fi
-\ No newline at end of file
+make check 2> /dev/null
+\ No newline at end of file