islet icon indicating copy to clipboard operation
islet copied to clipboard

Failure of unsafe-analyzer analysis

Open bitboom opened this issue 8 months ago • 0 comments

Currently, the analysis fails due to a conflict between the dependencies of the crates used by cargo-geiger (syn, serde-json) and the dependencies of the ciborium crate used in the attestation module.

/serde_json-1.0.109/src/features_check/error.rs, Syn(Error("expected one of: `fn`, `extern`, `use`, `static`, `const`, `unsafe`, `mod`, `type`, `struct`, `enum`, `union`, `trait`, `auto`, `impl`, `default`, `macro`, identifier, `self`, `super`, `crate`, `::`"), "/home/sangwan/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde_json-1.0.109/src/features_check/error.rs")
thread '<unnamed>' panicked at /home/sangwan/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syn-1.0.109/src/lit.rs:1020:13:
Unrecognized literal: `c""`
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
  • Temporary Solution: Temporarily disable the attestation module

  • Fundamental Solution: Resolve the dependency conflict

We need to either modify cargo-geiger or ciborium to resolve this dependency conflict. However, resolving these dependencies involves forking and modifying 3 to 5 crates, which adds a considerable issue.

bitboom avatar Jun 26 '24 05:06 bitboom