8.10 练习
09-练习 — Comprehensive Rust
1分钟内可阅读完
译文 · 基于 Comprehensive Rust
原文链接: https://google.github.io/comprehensive-rust/exercises/chromium/third-party.html
8.10 练习
把 uwuify 加到 Chromium,并关闭该 crate 的默认 features。假设该 crate 将用于发布版 Chromium,但不会用于处理不可信输入。
(下一个练习我们将从 Chromium 使用 uwuify,但若你愿意,可以跳过先行完成。或者,你可以创建一个使用 uwuify 的新 rust_executable 目标。)
学员将需要下载大量传递依赖。
总共需要的 crate 是:
instant,lock_api,parking_lot,parking_lot_core,redox_syscall,scopeguard,smallvec,以及uwuify。若学员下载的比这还多,他们很可能忘记关闭默认 features。
感谢 Daniel Liu 提供此 crate!