Skip to content

Build system: opportunistic drivers #159

@Wenzel

Description

@Wenzel

PR #151 attempts to have default drivers enabled.

The issue raised by this system is that it requires to have

  • Xen headers
  • libkvmi headers
  • VirtualBox FDP headers

all installed and detected to compile, unless you explicitely disable a driver.

An improvment would be to do like libvmi's cmake build system, and have opportunistic features, where we try to build the crates on which the driver depend upon, and on failure we simply disable the feature and continue.

I don't know how to implement this with cargo, build.rs.

Next step would be to ask on Rust language forums.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions