google/comprehensive-rust

Explicitly call out dev-dependencies used in solutions

Open

#1 290 ouverte le 2 oct. 2023

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)Rust (32 954 stars) (2 009 forks)batch import
enhancementgood first issuehelp wanted

Description

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?

Guide contributeur