From 3fb76495ecf42094b7cf0316d29e0ed9b368d881 Mon Sep 17 00:00:00 2001 From: LordMZTE Date: Thu, 22 Jul 2021 16:13:53 +0200 Subject: [PATCH] small fixes and testenv - added testenv - added formatter config - updated gitignore --- .gitignore | 1 + rustfmt.toml | 12 ++++++++++++ testenv/docker-compose.yml | 16 ++++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 rustfmt.toml create mode 100644 testenv/docker-compose.yml diff --git a/.gitignore b/.gitignore index 89c0fff..405d8d3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /target .idea *.iml +Cargo.lock diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 0000000..1059111 --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1,12 @@ +unstable_features = true +binop_separator = "Back" +format_code_in_doc_comments = true +format_macro_matchers = true +format_strings = true +imports_layout = "HorizontalVertical" +match_block_trailing_comma = true +merge_imports = true +normalize_comments = true +use_field_init_shorthand = true +use_try_shorthand = true +wrap_comments = true diff --git a/testenv/docker-compose.yml b/testenv/docker-compose.yml new file mode 100644 index 0000000..9bc4a1c --- /dev/null +++ b/testenv/docker-compose.yml @@ -0,0 +1,16 @@ +version: "3.1" +services: + db: + image: mariadb:10.6.2 + ports: + - 3306:3306 + environment: + MARIADB_ROOT_PASSWORD: root + MARIADB_USER: jensmemes + MARIADB_PASSWORD: snens + MARIADB_DATABASE: jensmemes + + adminer: + image: adminer + ports: + - 8080:8080