initial commit

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2022-10-26 11:47:17 +05:30
commit fcce234a10
15 changed files with 268 additions and 0 deletions

26
rust/gentoml Executable file
View File

@@ -0,0 +1,26 @@
#!/usr/bin/env sh
toml=Cargo.toml
name=eulerfunt
cat > $toml <<EOF
[package]
name = "$name"
version = "0.1.0"
edition = "2021"
EOF
if ! [ -e ./src/p*.rs ]; then
exit 0
fi
for problem in ./src/p*.rs; do
file=${problem##*/}
bin=${file%.*}
cat >> $toml <<EOF
[[bin]]
name = "$bin"
path = "$problem"
EOF
done