Skip to content

Build issues #3

@barnjamin

Description

@barnjamin

Hello!

It looks like this dependency comes from this repo.

Cloning that locally and trying to build the cli fails with a version mismatch error (affinidi-tdk @ v0.4/v0.5).

error[E0308]: mismatched types
   --> openvtc-cli/src/interactions/vrc.rs:378:45
    |
378 |     match tdk.verify_data(&check_vrc, None, &proof).await {
    |               -----------                   ^^^^^^ expected `affinidi_tdk::affinidi_data_integrity::DataIntegrityProof`, found `affinidi_data_integrity::DataIntegrityProof`
    |               |
    |               arguments to this method are incorrect
    |
note: there are multiple different versions of crate `affinidi_data_integrity` in the dependency graph

Setting this projects dependency version to v0.4 allows it to compile

I don't expect this is necessarily the correct way to to this so rather than opening a PR that'd get closed, this is the diff for reference.

ben@Bens-MacBook-Pro openvtc % git diff
diff --git a/Cargo.toml b/Cargo.toml
index 3df7a48..c0e21ae 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -25,9 +25,15 @@ openvtc = { version = "0.1.0", path = "openvtc-lib", default-features = false }
 # Decentralized Trust Graph Credentials
 # NOTE: When this is published, switch from git to crates.io
 dtg-credentials = { version = "0.1", git = "https://github.com/FirstPersonNetwork/dtg-credentials-rs" }
+vta-sdk = { version = "0.1.0", git = "https://github.com/FirstPersonNetwork/vtc-vta-rs", features = [
+  "session",
+  "client",
+  "didcomm",
+  "keyring",
+] }
 
 aes-gcm = "0.10"
-affinidi-tdk = "0.5"
+affinidi-tdk = "0.4"
 affinidi-data-integrity = "0.3"
 anyhow = "1.0"
 arboard = { version = "3.6.1", features = ["wayland-data-control"] }
@@ -67,12 +73,6 @@ tracing-subscriber = { version = "0.3", features = ["env-filter"] }
 tui-input = "0.15"
 url = "2.5"
 uuid = { version = "1.20", features = ["v4", "fast-rng"] }
-vta-sdk = { path = "../vtc-vta-rs/vta-sdk", features = [
-  "session",
-  "client",
-  "didcomm",
-  "keyring",
-] }
 reqwest = { version = "0.13", features = ["json"] }
 x25519-dalek = { version = "2.0", features = ["static_secrets"] }
 zeroize = "1.8"

Also, please note the first command in the getting started section in the README fails with a message about it being a virtual manifest:

% cargo install --path .
error: found a virtual manifest at `/Users/ben/openvtc/Cargo.toml` instead of a package manifest

Happy to submit both of these as PRs if you'd like, just wanted to give you a heads up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions