mirror of
https://github.com/rust-lang/rustlings
synced 2024-11-14 00:17:16 +00:00
Add comments about dev/Cargo.toml
This commit is contained in:
parent
def8d2c569
commit
190945352a
2 changed files with 13 additions and 1 deletions
|
@ -1,3 +1,6 @@
|
|||
# This file is a hack to allow using `cargo r` to test `rustlings` during development.
|
||||
# You shouldn't edit it manually. It is created and updated by running `cargo run --bin gen-dev-cargo-toml`.
|
||||
|
||||
bin = [
|
||||
{ name = "intro1", path = "../exercises/00_intro/intro1.rs" },
|
||||
{ name = "intro2", path = "../exercises/00_intro/intro2.rs" },
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// Generates `dev/Cargo.toml` such that it is synced with `info.toml`.
|
||||
// `dev/Cargo.toml` is a hack to allow using `cargo r` to test `rustlings`
|
||||
// during development.
|
||||
|
||||
use anyhow::{bail, Context, Result};
|
||||
use serde::Deserialize;
|
||||
use std::{
|
||||
|
@ -25,7 +29,12 @@ fn main() -> Result<()> {
|
|||
|
||||
let mut buf = Vec::with_capacity(1 << 14);
|
||||
|
||||
buf.extend_from_slice(b"bin = [\n");
|
||||
buf.extend_from_slice(
|
||||
b"# This file is a hack to allow using `cargo r` to test `rustlings` during development.
|
||||
# You shouldn't edit it manually. It is created and updated by running `cargo run --bin gen-dev-cargo-toml`.
|
||||
|
||||
bin = [\n",
|
||||
);
|
||||
|
||||
for exercise in exercises {
|
||||
buf.extend_from_slice(b" { name = \"");
|
||||
|
|
Loading…
Reference in a new issue