Compare commits

...
This repository has been archived on 2024-10-20. You can view files and clone it, but cannot push or open issues or pull requests.

26 Commits

Author SHA1 Message Date
8ebe2d8aff Merge pull request 'Improve README' (#24) from README-fix into main
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #24
Reviewed-by: Leon Wilzer <leon@noreply.localhost>
Reviewed-by: hendrik <hendrik@noreply.localhost>
2024-02-15 14:56:24 +01:00
a67e1439eb Merge branch 'main' into README-fix
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-02-15 14:53:45 +01:00
db1a21f5b3 Merge pull request 'duplicate stupid workarounds' (#27) from drone-amd64-fix into main
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #27
Reviewed-by: Leon Wilzer <leon@noreply.localhost>
2024-02-15 14:53:36 +01:00
475ac447d6 Merge branch 'main' into README-fix
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is failing
2024-02-15 14:51:22 +01:00
b645c1cdaa duplicate stupid workarounds
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-02-15 08:04:37 +01:00
3c6be42b9e revert to regex-compliant readme
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
2024-02-15 07:26:47 +01:00
f5997f3ab2 Merge pull request 'removed some unneeded --verbose flags' (#25) from less-verbose-ci into main
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #25
2024-02-15 02:55:21 +01:00
8b02f33718
removed some unneeded --verbose flags
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-02-15 02:53:19 +01:00
cd95c46131 tidying up
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-02-14 18:38:37 +01:00
89b62242bf some final improvements
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-02-14 18:37:07 +01:00
ae6539e456 add some A's
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-02-14 18:30:42 +01:00
c751a3240e actually sane readme
All checks were successful
continuous-integration/drone/push Build is passing
#23
2024-02-14 18:20:35 +01:00
2cca88d709 fix v2
All checks were successful
continuous-integration/drone/push Build is passing
2024-02-14 18:19:42 +01:00
9b57da84c3
doubled the amount of A
All checks were successful
continuous-integration/drone/push Build is passing
A is an important part of every healthy breakfast, increased it so that everyone may get enough A. Relates to #23
2024-02-14 18:11:04 +01:00
82575d8d6a Merge pull request 'inserted some useful comments' (#22) from ci-comments into main
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #22
2024-02-14 01:27:58 +01:00
c39a6ec626 inserted some useful comments
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-02-14 01:26:33 +01:00
a239e5d867 Merge pull request 'some small fixes' (#21) from ci-fixes into main
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #21
2024-02-14 01:23:42 +01:00
68ff9732ae some small fixes
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-02-14 01:22:33 +01:00
a85f43ea4f auto-format (#20)
All checks were successful
continuous-integration/drone/push Build is passing
Automatically formats commits using rustfmt if needed.
Auto-format commits have @wanessa as the committer and the respective author of the current commit as the of the auto-format commit. Every auto-format commit message is “rustfmt”.
Includes PGP Signing.

Reviewed-on: #20
2024-02-14 01:18:01 +01:00
c8725cf861 Merge pull request 'replaced images with alpine, since a dependency wants to link with local cc' (#19) from alpine->slim-bookworm into main
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #19
2024-02-13 01:15:33 +01:00
94f274d4d4 replaced images with alpine, since a dependency wants to link with local cc
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-02-13 01:11:37 +01:00
91b1aeb1be Merge pull request 'more stupid workarounds' (#17) from more-workarounds into main
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #17
2024-02-13 01:04:23 +01:00
89ea97dd6a more stupid workarounds
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
An oversight of the original """fix""". Cargo needs to resolve DNS to pull dependencies.
2024-02-13 01:01:35 +01:00
bd4e7eadcb ccc (#14)
All checks were successful
continuous-integration/drone/push Build is passing
Adjusted linting and formatting settings

Reviewed-on: #14
Reviewed-by: hendrik <hendrik@noreply.localhost>
Co-authored-by: Leon Wilzer <leon.wilzer@protonmail.com>
Co-committed-by: Leon Wilzer <leon.wilzer@protonmail.com>
2024-02-09 21:26:45 +01:00
02d175676a Fixed Project name (rust wants snake_case)
All checks were successful
continuous-integration/drone/push Build is passing
2024-01-13 21:36:53 +01:00
202f146467 Split test into build and test. Added pipelines for release build.
All checks were successful
continuous-integration/drone/push Build is passing
2024-01-13 21:35:42 +01:00
5 changed files with 213 additions and 31 deletions

View File

@ -1,28 +1,196 @@
kind: pipeline
name: test-on-amd64
platform:
arch: amd64
steps:
- name: test
image: rust:alpine
commands:
- rustc --version
- cargo --version
- cargo test --verbose --all
---
kind: pipeline
name: test-on-arm64
platform:
arch: arm64
steps:
- name: test
image: rust:alpine
commands:
- rustc --version
- cargo --version
- cargo test --verbose --all
kind: pipeline
name: amd64 [debug]
platform:
arch: amd64
steps:
- name: build [debug]
image: rust:1.71.1-slim-bookworm
commands:
- rustc --version
- cargo --version
# Stupid workarounds, for stupid problems
- echo "nameserver 1.1.1.1" >> /etc/resolv.conf
- echo "nameserver 1.0.0.1" >> /etc/resolv.conf
- cargo build --all
- name: test [debug]
image: rust:1.71.1-slim-bookworm
commands:
- rustc --version
- cargo --version
# Stupid workarounds, for stupid problems
- echo "nameserver 1.1.1.1" >> /etc/resolv.conf
- echo "nameserver 1.0.0.1" >> /etc/resolv.conf
- cargo test --all
- name: lint-clippy [debug]
image: rust:1.71.1-slim-bookworm
commands:
- rustc --version
- cargo --version
# Stupid workarounds, for stupid problems
- echo "nameserver 1.1.1.1" >> /etc/resolv.conf
- echo "nameserver 1.0.0.1" >> /etc/resolv.conf
- rustup component add clippy
- cargo clippy --all
---
kind: pipeline
name: arm64 [debug]
platform:
arch: arm64
steps:
- name: build [debug]
image: rust:1.71.1-slim-bookworm
commands:
- rustc --version
- cargo --version
# Stupid workarounds, for stupid problems
- echo "nameserver 1.1.1.1" >> /etc/resolv.conf
- echo "nameserver 1.0.0.1" >> /etc/resolv.conf
- cargo build --all
- name: test [debug]
image: rust:1.71.1-slim-bookworm
commands:
- rustc --version
- cargo --version
# Stupid workarounds, for stupid problems
- echo "nameserver 1.1.1.1" >> /etc/resolv.conf
- echo "nameserver 1.0.0.1" >> /etc/resolv.conf
- cargo test --all
- name: lint-clippy [debug]
image: rust:1.71.1-slim-bookworm
commands:
- rustc --version
- cargo --version
# Stupid workarounds, for stupid problems
- echo "nameserver 1.1.1.1" >> /etc/resolv.conf
- echo "nameserver 1.0.0.1" >> /etc/resolv.conf
- rustup component add clippy
- cargo clippy --all
---
kind: pipeline
name: amd64 [release]
platform:
arch: amd64
steps:
- name: build and test [release]
image: rust:1.71.1-slim-bookworm
commands:
- rustc --version
- cargo --version
# Stupid workarounds, for stupid problems
- echo "nameserver 1.1.1.1" >> /etc/resolv.conf
- echo "nameserver 1.0.0.1" >> /etc/resolv.conf
- cargo test --all --release
---
kind: pipeline
name: arm64 [release]
platform:
arch: arm64
steps:
- name: build and test [release]
image: rust:1.71.1-slim-bookworm
commands:
- rustc --version
- cargo --version
# Stupid workarounds, for stupid problems
- echo "nameserver 1.1.1.1" >> /etc/resolv.conf
- echo "nameserver 1.0.0.1" >> /etc/resolv.conf
- cargo test --all --release
---
kind: pipeline
name: rustfmt
steps:
- name: Format Project with rustfmt
image: rust:1.71.1-alpine
commands:
- rustc --version
- cargo --version
# Stupid workarounds, for stupid problems
- echo "nameserver 1.1.1.1" >> /etc/resolv.conf
- echo "nameserver 1.0.0.1" >> /etc/resolv.conf
- rustup component add rustfmt
- cargo fmt --all --check && echo "No formatting required, exiting early..." && exit 0
- cargo fmt --all --verbose
# Check for format loop
- apk add git
- '[ "$(git log -1 --pretty=%B | grep -E ".+")" = "rustfmt" ] && echo "format loop detected, aborting..." && exit 1'
# Get necessary packages
- apk add openssh gpg gpg-agent
# configure SSH and import private key
- mkdir -p "$${HOME}/.ssh"
- echo "$SSH_PRIVATE_KEY" > "$${HOME}/.ssh/git"
- echo "Host git.libre.moe" >> "$${HOME}/.ssh/config"
- echo " User git" >> "$${HOME}/.ssh/config"
- echo " IdentityFile $${HOME}/.ssh/git" >> "$${HOME}/.ssh/config"
- echo "$GITEA_ED25519_SIG" >> "$${HOME}/.ssh/known_hosts"
- echo "$GITEA_RSA_SIG" >> "$${HOME}/.ssh/known_hosts"
- echo "$GITEA_ECDSA_SIG" >> "$${HOME}/.ssh/known_hosts"
- chmod 700 -R "$${HOME}/.ssh"
# setup gpg
- gpg-agent --daemon
# the git config gpg.program absolutely despises anything other than a path, including additional arguments.
# so we just put it into it's own shell script and use that later
- echo "#!/bin/sh" >> /tmp/gpg.sh
- echo gpg --batch --pinentry-mode loopback --passphrase '$GPG_PASSPHRASE' \$@ >> /tmp/gpg.sh
- chmod 777 /tmp/gpg.sh
# import gpg key
- echo "$GPG_PRIVKEY" > /tmp/private.key
- /tmp/gpg.sh --import /tmp/private.key >> /tmp/import.sh || exit 2
# configure git
- git config --local user.name "WANessa"
- git config --local user.email "$GIT_EMAIL_ADDRESS"
- git config --local user.signingkey "$GPG_PUBKEY_ID"
- git config --local gpg.program "/tmp/gpg.sh" # see above comment
# Uncomment below line for ssh debugging
# - git config core.sshCommand '/usr/bin/ssh -v'
- git remote add ssh "$DRONE_GIT_SSH_URL"
# commit and push every modified file, does not include new files, because why should it?
- GIT_COMMITTER_NAME="WANessa" GIT_COMMITTER_EMAIL="$GIT_EMAIL_ADDRESS" git commit --author "$DRONE_COMMIT_AUTHOR_NAME <$DRONE_COMMIT_AUTHOR_EMAIL>" -S -a -m "rustfmt"
- git push ssh
environment:
SSH_PRIVATE_KEY:
from_secret: WANESSA_SSH_PRIVKEY
GIT_EMAIL_ADDRESS:
from_secret: WANESSA_EMAIL_ADDRESS
GITEA_ED25519_SIG:
from_secret: GIT_ED25519_SIG
GITEA_RSA_SIG:
from_secret: GIT_RSA_SIG
GITEA_ECDSA_SIG:
from_secret: GIT_ECDSA_SIG
GPG_PUBKEY_ID:
from_secret: WANESSA_GPG_PUBKEY_ID
GPG_PASSPHRASE:
from_secret: WANESSA_GPG_PASSPHRASE
GPG_PRIVKEY:
from_secret: WANESSA_GPG_PRIVKEY
depends_on:
- amd64 [debug]
- arm64 [debug]
- amd64 [release]
- arm64 [release]

View File

@ -1,8 +1,20 @@
[package]
name = "WANessa"
name = "wanessa"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
[lints.rust]
unsafe_code = "forbid"
[lints.clippy]
enum_glob_use = "deny" # https://rust-lang.github.io/rust-clippy/master/index.html#/enum_glob_use
pedantic = "deny" # https://rust-lang.github.io/rust-clippy/master/index.html#/?groups=pedantic
nursery = "deny" # wip lints: https://rust-lang.github.io/rust-clippy/master/index.html#/?groups=nursery
unwrap_used = "deny" # https://rust-lang.github.io/rust-clippy/master/index.html#/unwrap_used
missing_const_for_fn = "warn" # https://rust-lang.github.io/rust-clippy/master/index.html#/missing_const_for_fn
missing_assert_message = "deny" # https://rust-lang.github.io/rust-clippy/master/index.html#/missing_assert_message
missing_errors_doc = "deny" # https://rust-lang.github.io/rust-clippy/master/index.html#/missing_assert_message

File diff suppressed because one or more lines are too long

1
rustfmt.toml Normal file
View File

@ -0,0 +1 @@
hard_tabs = true

View File

@ -1,3 +1,3 @@
fn main() {
println!("Hello, world!");
println!("Hello, world!");
}