public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Attila Lakatos <atttila.lakatos@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rust-kbs-types] f44: Update to version 0.18.0
Date: Mon, 19 Oct 2026 15:03:06 GMT	[thread overview]
Message-ID: <179242218611.1.8375521662888281943.rpms-rust-kbs-types-a8f0312a7a41@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/rust-kbs-types
            Branch : f44
            Commit : a8f0312a7a4108ad808d3cb3af398d557941936e
            Author : Attila Lakatos <atttila.lakatos@gmail.com>
            Date   : 2026-10-02T12:04:53+02:00
            Stats  : +146/-17 in 5 file(s)
            URL    : https://src.fedoraproject.org/rpms/rust-kbs-types/c/a8f0312a7a4108ad808d3cb3af398d557941936e?branch=f44

            Log:
            Update to version 0.18.0

Resolves: rhbz#2449432

Signed-off-by: Attila Lakatos <atttila.lakatos@gmail.com>

---
diff --git a/.gitignore b/.gitignore
index 88e789a..ca12aff 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,4 @@
 /kbs-types-0.11.0.crate
 /kbs-types-0.13.0.crate
 /kbs-types-0.14.0.crate
+/kbs-types-0.18.0.crate

diff --git a/kbs-types-fix-metadata.diff b/kbs-types-fix-metadata.diff
index 4ee90b1..77a0175 100644
--- a/kbs-types-fix-metadata.diff
+++ b/kbs-types-fix-metadata.diff
@@ -1,15 +1,144 @@
---- kbs-types-0.14.0/Cargo.toml	1970-01-01T00:00:01+00:00
-+++ kbs-types-0.14.0/Cargo.toml	2026-01-05T10:41:43.155074+00:00
-@@ -80,12 +80,3 @@
- [dependencies.thiserror]
- version = "2.0.3"
+--- kbs-types-0.18.0/Cargo.toml
++++ kbs-types-0.18.0/Cargo.toml
+@@ -40,7 +40,6 @@
+     "sm3/std",
+     "strum/std",
+     "thiserror/std",
+-    "dep:ear",
+ ]
+ 
+ [lib]
+@@ -51,10 +50,6 @@
+ version = "0.22.1"
  default-features = false
+ 
+-[dependencies.ear]
+-version = "0.5.0"
+-optional = true
 -
--[dev-dependencies.codicon]
--version = "3.0.0"
+ [dependencies.serde]
+ version = "1.0"
+ features = ["derive"]
+--- kbs-types-0.18.0/src/lib.rs
++++ kbs-types-0.18.0/src/lib.rs
+@@ -15,8 +15,6 @@
+ #[cfg(all(feature = "alloc", not(feature = "std")))]
+ use alloc::{string::String, vec::Vec};
+ use base64::{prelude::BASE64_URL_SAFE_NO_PAD, Engine};
+-#[cfg(feature = "std")]
+-use ear::{self, RawValue};
+ use serde::{Deserialize, Serialize};
+ use serde_json::{Map, Value};
+ #[cfg(all(feature = "std", not(feature = "alloc")))]
+@@ -118,71 +116,6 @@
+     },
+ }
+ 
+-#[cfg(feature = "std")]
+-impl From<&TeePubKey> for ear::RawValue {
+-    fn from(tpk: &TeePubKey) -> RawValue {
+-        let mut map: Vec<(RawValue, RawValue)> = vec![];
 -
--[dev-dependencies.curl]
--version = "0.4"
+-        match tpk {
+-            TeePubKey::RSA { alg, k_mod, k_exp } => {
+-                map.push((
+-                    RawValue::String("kty".to_string()),
+-                    RawValue::String("RSA".to_string()),
+-                ));
+-                map.push((
+-                    RawValue::String("alg".to_string()),
+-                    RawValue::String(alg.clone()),
+-                ));
+-                map.push((
+-                    RawValue::String("n".to_string()),
+-                    RawValue::String(k_mod.clone()),
+-                ));
+-                map.push((
+-                    RawValue::String("e".to_string()),
+-                    RawValue::String(k_exp.clone()),
+-                ));
+-            }
+-            TeePubKey::EC { crv, alg, x, y } => {
+-                map.push((
+-                    RawValue::String("kty".to_string()),
+-                    RawValue::String("EC".to_string()),
+-                ));
+-                map.push((
+-                    RawValue::String("crv".to_string()),
+-                    RawValue::String(crv.clone()),
+-                ));
+-                map.push((
+-                    RawValue::String("alg".to_string()),
+-                    RawValue::String(alg.clone()),
+-                ));
+-                map.push((
+-                    RawValue::String("x".to_string()),
+-                    RawValue::String(x.clone()),
+-                ));
+-                map.push((
+-                    RawValue::String("y".to_string()),
+-                    RawValue::String(y.clone()),
+-                ));
+-            }
+-            TeePubKey::AKP { alg, public_key } => {
+-                map.push((
+-                    RawValue::String("kty".to_string()),
+-                    RawValue::String("AKP".to_string()),
+-                ));
+-                map.push((
+-                    RawValue::String("alg".to_string()),
+-                    RawValue::String(alg.clone()),
+-                ));
+-                map.push((
+-                    RawValue::String("pub".to_string()),
+-                    RawValue::String(public_key.clone()),
+-                ));
+-            }
+-        }
 -
--[dev-dependencies.procfs]
--version = "0.15"
+-        RawValue::Map(map)
+-    }
+-}
+ 
+ /// Data generated during the attestation process between client and server. Relevant only to the
+ /// client-server pairing.
+@@ -696,39 +629,6 @@
+         assert_eq!(info.detail, "problemdetail");
+     }
+ 
+-    #[test]
+-    #[cfg(feature = "std")]
+-    fn tee_pubkey_ear_json_deserialize() {
+-        // RSA key.
+-        let tpk = TeePubKey::RSA {
+-            alg: "test".to_string(),
+-            k_mod: "test".to_string(),
+-            k_exp: "test".to_string(),
+-        };
+-        let ear_raw: RawValue = (&tpk).into();
+-        let json_str = serde_json::to_string(&ear_raw).unwrap();
+-        assert_eq!(json_str, serde_json::to_string(&tpk).unwrap());
+-
+-        // EC key.
+-        let tpk = TeePubKey::EC {
+-            crv: "test".to_string(),
+-            alg: "test".to_string(),
+-            x: "test".to_string(),
+-            y: "test".to_string(),
+-        };
+-        let ear_raw: RawValue = (&tpk).into();
+-        let json_str = serde_json::to_string(&ear_raw).unwrap();
+-        assert_eq!(json_str, serde_json::to_string(&tpk).unwrap());
+-
+-        // AKP key.
+-        let tpk = TeePubKey::AKP {
+-            alg: "test".to_string(),
+-            public_key: "test".to_string(),
+-        };
+-        let ear_raw: RawValue = (&tpk).into();
+-        let json_str = serde_json::to_string(&ear_raw).unwrap();
+-        assert_eq!(json_str, serde_json::to_string(&tpk).unwrap());
+-    }
+ 
+     #[test]
+     fn tee_as_ref() {

diff --git a/rust-kbs-types.spec b/rust-kbs-types.spec
index c1f261e..d28bc56 100644
--- a/rust-kbs-types.spec
+++ b/rust-kbs-types.spec
@@ -5,7 +5,7 @@
 %global crate kbs-types
 
 Name:           rust-kbs-types
-Version:        0.14.0
+Version:        0.18.0
 Release:        %autorelease
 Summary:        Rust (de)serializable types for KBS
 
@@ -13,8 +13,7 @@ License:        Apache-2.0
 URL:            https://crates.io/crates/kbs-types
 Source:         %{crates_source}
 # Manually created patch for downstream crate metadata changes
-# * Remove unused dev-dependencies: codicon, curl, procfs:
-#   https://github.com/confidential-containers/kbs-types/pull/80
+# * Remove unused ear dependency and its transitive dep chain: https://github.com/confidential-containers/kbs-types/pull/93
 Patch:          kbs-types-fix-metadata.diff
 
 BuildRequires:  cargo-rpm-macros >= 24

diff --git a/rust2rpm.toml b/rust2rpm.toml
index ae8d08b..70fb544 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -1,7 +1,7 @@
 [package]
 cargo-toml-patch-comments = [
     """\
-    Remove unused dev-dependencies: codicon, curl, procfs: \
-    https://github.com/confidential-containers/kbs-types/pull/80\
+    Remove unused ear dependency and its transitive dep chain: \
+    https://github.com/confidential-containers/kbs-types/pull/93\
     """,
 ]

diff --git a/sources b/sources
index 5886002..0a12f3d 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (kbs-types-0.14.0.crate) = 3ff5133bf17c539ed76b2afb0dc37df7ad739fcaaa5a700e9ea1cabf7d616a8e0ef56b3a618b17a36ac21925bd2e9aaad1641f41bceffad9168026c0190417a5
+SHA512 (kbs-types-0.18.0.crate) = cd5a2c532e7128c4a709dd0aa0103dab4a1c1d1124bba6c89b03c48c3b1a3eb637fb6d1e1c1e06553a437f9652fa928e89ea84566845538b212a4825860308f2

                 reply	other threads:[~2026-10-19 15:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179242218611.1.8375521662888281943.rpms-rust-kbs-types-a8f0312a7a41@fedoraproject.org \
    --to=atttila.lakatos@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox