diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..3550a30 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..73719cf --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +# IDE / Dev env +/.idea +/.direnv + +# Build files +/target + +# Misc +/example diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..ee8b9ed --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,21 @@ +image: "archlinux:base-devel" + +cargo:clippy: + before_script: + - pacman -Syu --noconfirm + - pacman -S --noconfirm rustup openssl-1.1 + - rustup default stable + - rustup component add clippy + - rustc --version && cargo --version && rustup --version + script: + - cargo clippy --no-deps -- -D clippy::all + +cargo:fmt: + before_script: + - pacman -Syu --noconfirm + - pacman -S --noconfirm rustup openssl-1.1 + - rustup default stable + - rustup component add rustfmt + - rustc --version && cargo --version && rustup --version + script: + - cargo fmt --check