From 9bbe58a2744e7e5b06e70f8088384b2981c844d9 Mon Sep 17 00:00:00 2001 From: Henri Bourcereau Date: Thu, 1 Dec 2022 18:04:03 +0100 Subject: [PATCH] pico-args --- .gitignore | 5 +++++ Cargo.lock | 16 ++++++++++++++++ Cargo.toml | 9 +++++++++ doc/backlog.md | 14 ++++++++++++++ doc/journal.md | 7 +++++++ src/main.rs | 3 +++ 6 files changed, 54 insertions(+) create mode 100644 Cargo.lock create mode 100644 Cargo.toml create mode 100644 doc/journal.md create mode 100644 src/main.rs diff --git a/.gitignore b/.gitignore index 3f67872..a1157c1 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,8 @@ **/*.rs.bk .devenv* devenv.local.nix + + +# Added by cargo + +/target diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..df0d63b --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,16 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "pico-args" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5be167a7af36ee22fe3115051bc51f6e6c7054c9348e28deb4f49bd6f705a315" + +[[package]] +name = "trictrac" +version = "0.1.0" +dependencies = [ + "pico-args", +] diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..af72503 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "trictrac" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +pico-args = "0.5.0" diff --git a/doc/backlog.md b/doc/backlog.md index 30891e1..96c82b1 100644 --- a/doc/backlog.md +++ b/doc/backlog.md @@ -1,5 +1,19 @@ # Backlog +## Rust libs + +cf. https://blessed.rs/crates + +- cli : https://lib.rs/crates/pico-args +- reseau async : tokio +- web serveur : axum (uses tokio) + - https://fasterthanli.me/series/updating-fasterthanli-me-for-2022/part-2#the-opinions-of-axum-also-nice-error-handling + +## Others +- plugins avec https://github.com/extism/extism + +## Backgammon existing projects + * lib rust backgammon - https://docs.rs/crate/backgammon/0.4.0 - https://github.com/marktani/backgammon diff --git a/doc/journal.md b/doc/journal.md new file mode 100644 index 0000000..5b8794a --- /dev/null +++ b/doc/journal.md @@ -0,0 +1,7 @@ +# Journal + +```sh +devenv init +cargo init +cargo add pico-args +``` diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}