[package] name = "x86" version = "0.52.0" authors = [ "Gerd Zellweger ", "Eric Kidd ", "Philipp Oppermann ", "Dan Schatzberg ", "John Ericson ", "Rex Lunae ", "Brian Martin ", "Caleb Boylan ", "Nikolay Edigaryev ", "Stefan Lankes ", "Jonathan Klimt ", "Jens Breitbart ", "Reto Achermann ", "woppopo ", "Vikram Narayanan ", "Dan Cross ", "Yuekai Jia ", "Lucas Kent " ] description = "Library to program x86 (amd64) hardware. Contains x86 specific data structure descriptions, data-tables, as well as convenience function to call assembly instructions typically not exposed in higher level languages." homepage = "https://github.com/gz/rust-x86" repository = "https://github.com/gz/rust-x86" documentation = "https://docs.rs/x86" readme = "README.md" keywords = ["ia32", "os", "amd64", "x86", "x86-64"] license = "MIT" build = "build.rs" edition = '2018' exclude = ["./.github/*"] [features] performance-counter = ["phf", "phf_codegen", "csv", "serde_json"] # Note we have to choose between regular tests and x86test at the moment, so we use features # (limitation in https://github.com/rust-lang/rust/issues/50297) # Run user-space tests, i.e. regular #[test] utest = [] # Run VM tests, i.e., the #[x86test] ones vmtest = [] unstable = [] [[test]] name = "kvm" path = "tests/kvm/bin.rs" [build-dependencies] phf_codegen = { version = "0.9.0", optional = true } csv = { version = "1.1.5", optional = true } serde_json = { version = "1.0.61", optional = true } [dependencies] bitflags = "1.*" bit_field = "0.10.1" raw-cpuid = "10.2.0" [dependencies.phf] version = "0.9.0" default-features = false # So phf uses libcore instead of libstd optional = true [target.'cfg(target_family = "unix")'.dev-dependencies] klogger = { version = "0.0.14", features = ["use_ioports"] } x86test = { path = "x86test" } libc = "0.2.*"