Rust amethyst hello world示例Arch Linux中xcb的未解析导入

Rust amethyst hello world示例Arch Linux中xcb的未解析导入,rust,amethyst,Rust,Amethyst,我试图在Arch Linux机器上用Amethyst运行基本的hello world示例,在编译xcb 0.8.2时,我遇到了一系列未解决的导入错误 我的Cargo.toml看起来像这样 [package] name = "mygame" version = "0.1.0" authors = ["my_user"] edition = "2018" # See more keys and their defini

我试图在Arch Linux机器上用Amethyst运行基本的hello world示例,在编译xcb 0.8.2时,我遇到了一系列未解决的导入错误

我的Cargo.toml看起来像这样

[package]
name = "mygame"
version = "0.1.0"
authors = ["my_user"]
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies.amethyst]
version = "0.15"
features = ["vulkan"]
我的代码如下所示:

使用紫水晶::前奏::*;
fn main()->amethyst::Result{
好(())
}
我得到大约500个错误,但它们都是未解决的依赖项错误,看起来与此类似

error[E0432]:未解析的导入`ffi::xproto::xcb\u setup\u t`、`ffi::xproto::xcb\u query\u extension\u reply\t`
-->/home/my_user/.cargo/registry/src/github.com-1ec6299db9ec823/xcb-0.8.2/src/ffi/base.rs:32:19
|
32 |使用ffi::xproto:{xcb_setup\u t,xcb_query\u extension\u reply\u t};
|^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ffi::xproto中没有“xcb查询扩展”和“回复”`
|                   |
|ffi::xproto中没有“xcb设置”`
错误[E0412]:在此作用域中找不到类型“Setup”
-->/home/my_user/.cargo/registry/src/github.com-1ecc6299db9ec823/xcb-0.8.2/src/base.rs:438:32
|
438 |发布fn获取设置(&self)->设置{
|在此作用域中找不到^
我的Cargo.lock文件与xcb的关系如下所示


[[package]]
name = "xcb"
version = "0.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5e917a3f24142e9ff8be2414e36c649d47d6cc2ba81f16201cdef96e533e02de"
dependencies = [
 "libc",
 "log",
]
我已经检查并确保xcb 0.8.2确实包含缺少的结构,而且由于
Cargo.lock
似乎说它是正确的版本,我对可能出现的问题有点不知所措。 有什么想法吗