fix(attester): build evidence_getter under minimal feature sets#97
Merged
jialez0 merged 1 commit intoJun 30, 2026
Merged
Conversation
Collaborator
|
@jialez0 ,您好,您的请求已接收,请耐心等待结果。 |
Collaborator
|
@jialez0 ,您好,未检测到有镜像需要构建,如需重新检测请评论 /start 。 |
Collaborator
|
@jialez0 ,您好,您的请求已接收,请耐心等待结果。 |
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
force-pushed
the
snp-evidence-getter-bin-fix
branch
from
June 29, 2026 09:29
455a81d to
2ad003e
Compare
Collaborator
|
@jialez0 ,您好,您的请求已接收,请耐心等待结果。 |
Collaborator
|
@jialez0 ,您好,未检测到有镜像需要构建,如需重新检测请评论 /start 。 |
Collaborator
|
@jialez0 ,您好,您的请求已接收,请耐心等待结果。 |
Collaborator
|
@jialez0 ,您好,未检测到有镜像需要构建,如需重新检测请评论 /start 。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The
evidence_getterbinary uses#[tokio::main], which defaults to the multi-thread runtime and therefore requirestokio/rt-multi-thread. Thebinfeature only enabledtokio/rt, so building the standalone evidence tool for a single TEE — e.g.:fails to compile with:
This blocks using
evidence_getterto produce SEV-SNP (or any single-TEE) evidence without pulling in the full default attester set.Fix
Add
tokio/rt-multi-threadto thebinfeature.Validation
Built
evidence_getterwith--no-default-features --features bin,snp-attesterand used it to produce a real SEV-SNP evidence on an AMD EPYC 9T25 (Turin) SNP guest.