Skip to content

fix(attester): build evidence_getter under minimal feature sets#97

Merged
jialez0 merged 1 commit into
inclavare-containers:mainfrom
jialez0:snp-evidence-getter-bin-fix
Jun 30, 2026
Merged

fix(attester): build evidence_getter under minimal feature sets#97
jialez0 merged 1 commit into
inclavare-containers:mainfrom
jialez0:snp-evidence-getter-bin-fix

Conversation

@jialez0

@jialez0 jialez0 commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

Problem

The evidence_getter binary uses #[tokio::main], which defaults to the multi-thread runtime and therefore requires tokio/rt-multi-thread. The bin feature only enabled tokio/rt, so building the standalone evidence tool for a single TEE — e.g.:

cargo build --no-default-features --features bin,snp-attester --bin evidence_getter

fails to compile with:

error: The default runtime flavor is `multi_thread`, but the `rt-multi-thread` feature is disabled.
  --> attestation-agent/attester/src/bin/evidence_getter.rs:26:1
   |
26 | #[tokio::main]

This blocks using evidence_getter to produce SEV-SNP (or any single-TEE) evidence without pulling in the full default attester set.

Fix

Add tokio/rt-multi-thread to the bin feature.

Validation

Built evidence_getter with --no-default-features --features bin,snp-attester and used it to produce a real SEV-SNP evidence on an AMD EPYC 9T25 (Turin) SNP guest.

@shankailun-aliyun

Copy link
Copy Markdown
Collaborator

@jialez0 ,您好,您的请求已接收,请耐心等待结果。

@shankailun-aliyun

Copy link
Copy Markdown
Collaborator

@jialez0 ,您好,未检测到有镜像需要构建,如需重新检测请评论 /start

@shankailun-aliyun

Copy link
Copy Markdown
Collaborator

@jialez0 ,您好,您的请求已接收,请耐心等待结果。

@shankailun-aliyun

Copy link
Copy Markdown
Collaborator

@jialez0 ,您好,未检测到有镜像需要构建,如需重新检测请评论 /start

The `evidence_getter` binary uses `#[tokio::main]`, which defaults to the
multi-thread runtime and therefore needs `tokio/rt-multi-thread`. The `bin`
feature only enabled `tokio/rt`, so building the SNP (or any single-TEE)
evidence tool with e.g. `--no-default-features --features bin,snp-attester`
fails with:

    error: The default runtime flavor is `multi_thread`, but the
    `rt-multi-thread` feature is disabled.

Add `tokio/rt-multi-thread` to the `bin` feature so the standalone evidence
tool builds without pulling the full default feature set.

Verified by building `evidence_getter` with `--no-default-features
--features bin,snp-attester` and producing a real SEV-SNP evidence on an
AMD EPYC 9T25 (Turin) SNP guest.

Signed-off-by: Jiale Zhang <zhangjiale@linux.alibaba.com>
@jialez0
jialez0 force-pushed the snp-evidence-getter-bin-fix branch from 455a81d to 2ad003e Compare June 29, 2026 09:29
@shankailun-aliyun

Copy link
Copy Markdown
Collaborator

@jialez0 ,您好,您的请求已接收,请耐心等待结果。

@shankailun-aliyun

Copy link
Copy Markdown
Collaborator

@jialez0 ,您好,未检测到有镜像需要构建,如需重新检测请评论 /start

@shankailun-aliyun

Copy link
Copy Markdown
Collaborator

@jialez0 ,您好,您的请求已接收,请耐心等待结果。

@shankailun-aliyun

Copy link
Copy Markdown
Collaborator

@jialez0 ,您好,未检测到有镜像需要构建,如需重新检测请评论 /start

@jialez0
jialez0 merged commit 12c3332 into inclavare-containers:main Jun 30, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants