rust - 无法在提交 43a74718 处编译 Servo crate:在 `webrender_api` 中找不到`Transaction`
问题描述
Cargo 在提交43a7471885acbb30bc3de1ac52a5a0e1392d79ce时无法编译伺服:
$ cargo build
Compiling webgpu v0.0.1 (https://github.com/servo/servo#43a74718)
error[E0433]: failed to resolve: could not find `Transaction` in `webrender_api`
--> /home/vl/.cargo/git/checkouts/servo-12bfca331f128de3/43a7471/components/webgpu/lib.rs:770:54
|
770 | let mut txn = webrender_api::Transaction::new();
| ^^^^^^^^^^^ could not find `Transaction` in `webrender_api`
该项目是一个新项目,修改了 Cargo.toml 以包含一个依赖项:
[package]
name = "test"
version = "0.1.0"
authors = ["Vladislav Nepogodin <nepogodin.vlad@gmail.com>"]
edition = "2018"
[dependencies]
libservo = { git = "https://github.com/servo/servo", features = ["layout-2020"] }
我正在使用 Rustnightly-2021-03-12
和 Cargo cargo 1.52.0-nightly (970bc67c3 2021-03-07)
。
编译器设置有什么问题吗?
解决方案
推荐阅读
- angular - @tusharghoshbd ngx-datatable 不显示相关数据
- android - MaterialSearchView 不显示重新发送列表
- python - 考虑可用性的熊猫返回百分位数
- c - Scanf 函数跳过
- javascript - AWS Amplify 上的 Nuxt 应用程序在浏览器中刷新后出现路由问题
- python - 将远程 postgresql 数据库转换为本地 sqlite3 数据库
- pdf - 如何在 Puppeteer 生成的 pdf 页面的边距中保持背景颜色?
- python - 为什么验证不允许清除“条目”字段?
- c# - 你可以根据另一个类的布尔输出创建一个列表吗?
- blazor - Blazor InputNumber 组件中的“可空对象必须有值”错误