google/comprehensive-rust

Explicitly call out dev-dependencies used in solutions

已关闭

#1,290 创建于 2023年10月2日

 (0 条评论) (0 个反应) (0 位负责人)Rust (2,009 个派生)batch import
enhancementgood first issuehelp wanted

仓库指标

星标
 (32,954 个星标)
PR 合并指标
 (平均合并 9天 23小时) (30 天内合并 36 个 PR)

描述

From https://github.com/google/comprehensive-rust/pull/1288#issuecomment-1743131185: the safe FFI wrapper solution does not actually work when you copy-paste it into a new Cargo project. The problem is that the unit tests rely on tempfile.

We need to fix this: I suggest adding some text to the solution which shows the cargo add commands to run. Alternatively, we could {{#include ...}} the Cargo.toml file — but I fear this will become messy since all solutions currently share a single Cargo.toml file. We could perhaps split them up further?

贡献者指南