Skip to content

default feature "sev" prohibits compilation on non x86_84 targets #369

Description

@mkulke

Is this intentional? in trustee there are some target archs (aarch64, s390) that would be able to verify SNP evidence, but you cannot currently build the "sev" feature on those platforms, because "arch::_cpuid" is used, which is x86 specific. This means a consumer has to disable default-features for this crate. However, if a transitive dependency on the sev crate is introduced and that one doesn't disable default-features, the sum of all features will be enabled, and compilation will fail. E.g.

trustee.deps:
- sev v=7, default-features=false,features=["serde"]
- some-crate v=1

some-crate.deps:
- sev v=7, default-features=true,

=> trustee.deps.sev.features = [default.., serde]

if it's unintentional, maybe a ci job w/ default features on an arm runner could help?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions