gana

GNUnet Assigned Numbers Authority
Log | Files | Refs | README | LICENSE

commit b276c8e4dc474b9c15aa354c766b03bc95a3bab3
parent ea05934187ec3cedf7e8c828537974f0d7c6fbb4
Author: Antoine A <>
Date:   Tue, 30 Jun 2026 15:26:14 +0200

fix ec and rust codegen

Diffstat:
Mgnu-taler-error-codes/registry.rec | 2+-
Mgnu-taler-error-codes/rs.header | 7+++++--
Mgnu-taler-error-codes/rs.impl | 2+-
Mgnu-taler-error-codes/rs.impl_template | 2+-
4 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/gnu-taler-error-codes/registry.rec b/gnu-taler-error-codes/registry.rec @@ -2958,7 +2958,7 @@ HttpStatus: 409 Value: 5160 Name: BANK_BAD_SIGNATURE Description: The provided signature is invalid. -HttpStatus: 409 +HttpStatus: 403 Value: 5161 Name: BANK_OLD_TIMESTAMP diff --git a/gnu-taler-error-codes/rs.header b/gnu-taler-error-codes/rs.header @@ -1,6 +1,6 @@ /* This file is part of GNU Taler - Copyright (C) 2024-2025 Taler Systems SA + Copyright (C) 2024-2026 Taler Systems SA GNU Taler is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published @@ -21,8 +21,11 @@ but it does apply to this file. */ +use taler_macros::EnumMeta; + /// Error codes used by GNU Taler -#[derive(Debug, Copy, Clone, PartialEq, Eq)] +#[derive(Debug, Copy, Clone, PartialEq, Eq, EnumMeta)] #[allow(non_camel_case_types, dead_code)] #[repr(u16)] +#[enum_meta(Str, Description)] pub enum ErrorCode { diff --git a/gnu-taler-error-codes/rs.impl b/gnu-taler-error-codes/rs.impl @@ -1,6 +1,6 @@ } impl ErrorCode { - pub fn metadata(&self) -> (u16, &'static str) { + pub fn status_code(&self) -> u16 { use ErrorCode::*; match self { diff --git a/gnu-taler-error-codes/rs.impl_template b/gnu-taler-error-codes/rs.impl_template @@ -1 +1 @@ - {{Name}} => ({{HttpStatus_Value}}, "{{Description}}"), + {{Name}} => {{HttpStatus_Value}},