generated from PlexSheep/rs-base
Compare commits
No commits in common. "14986ce20df77ef783161f96c296ae557d48f847" and "06925a9c29687c5a61c0fed916be57db8a2a6471" have entirely different histories.
14986ce20d
...
06925a9c29
5 changed files with 67 additions and 13 deletions
47
.github/workflows/cargo.yaml
vendored
Normal file
47
.github/workflows/cargo.yaml
vendored
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
name: cargo devel CI
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- '**'
|
||||||
|
# - '!master'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
CI:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: cargo CI
|
||||||
|
permissions:
|
||||||
|
# Give the default GITHUB_TOKEN write permission to commit and push the
|
||||||
|
# added or changed files to the repository.
|
||||||
|
contents: write
|
||||||
|
steps:
|
||||||
|
- name: get repo
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: install rust
|
||||||
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
- name: install additional rust things
|
||||||
|
run: |
|
||||||
|
rustup component add rustfmt
|
||||||
|
rustup component add clippy
|
||||||
|
- name: config custom registry
|
||||||
|
run: |
|
||||||
|
mkdir -p ~/.cargo/
|
||||||
|
echo "" > ~/.cargo/config.toml
|
||||||
|
echo "[registry]" >> ~/.cargo/config.toml
|
||||||
|
echo 'cscherr = "cscherr"' >> ~/.cargo/config.toml
|
||||||
|
echo '[registries.cscherr]' >> ~/.cargo/config.toml
|
||||||
|
echo 'index = "https://git.cscherr.de/PlexSheep/_cargo-index.git"' >> ~/.cargo/config.toml
|
||||||
|
cat ~/.cargo/config.toml
|
||||||
|
- name: cargo clippy check
|
||||||
|
run: cargo clippy --all-features --all-targets --workspace
|
||||||
|
- name: cargo clippy fix
|
||||||
|
run: cargo clippy --fix --all-features --all-targets --workspace
|
||||||
|
- name: cargo fmt
|
||||||
|
run: cargo fmt --all
|
||||||
|
- name: cargo test
|
||||||
|
run: cargo test --all-features --all-targets --workspace && cargo test --all-features --workspace --doc
|
||||||
|
- name: commit back to repository
|
||||||
|
uses: stefanzweifel/git-auto-commit-action@v5
|
||||||
|
with:
|
||||||
|
# Optional. Commit message for the created commit.
|
||||||
|
# Defaults to "Apply automatic changes"
|
||||||
|
commit_message: automatic cargo CI changes
|
12
Cargo.toml
12
Cargo.toml
|
@ -1,16 +1,16 @@
|
||||||
[package]
|
[package]
|
||||||
name = "Kauma-analyzer"
|
name = "template"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
publish = false
|
publish = false
|
||||||
authors = ["Christoph J. Scherr <software@cscherr.de>"]
|
authors = ["Christoph J. Scherr <software@cscherr.de>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
description = "Solves exams from my professor for cryptoanalysis"
|
description = "No description yet"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
homepage = "https://git.cscherr.de/PlexSheep/kauma"
|
homepage = "https://git.cscherr.de/PlexSheep/rs-base"
|
||||||
repository = "https://git.cscherr.de/PlexSheep/kauma"
|
repository = "https://git.cscherr.de/PlexSheep/rs-base"
|
||||||
|
keywords = ["template"]
|
||||||
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = { version = "1.0.210", features = ["derive"] }
|
|
||||||
serde_json = "1.0.128"
|
|
||||||
|
|
2
LICENSE
2
LICENSE
|
@ -1,6 +1,6 @@
|
||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2024 Christoph Johannes Scherr
|
Copyright (c) 2024 PlexSheep
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,3 @@
|
||||||
# Kauma-Analyzer
|
# rs-base
|
||||||
|
|
||||||
I'm studying cybersecurity at DHBW, and we have "Kryptoalanysis und Methoden
|
Base repository for rust projects
|
||||||
Audit" (kauma) there. As part of this classe, we are to solve some
|
|
||||||
ccryptological exams in a controlled environment.
|
|
||||||
|
|
||||||
This repository contains my solutions for these.
|
|
11
scripts/publish.sh
Executable file
11
scripts/publish.sh
Executable file
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
cargo check --all-features
|
||||||
|
echo ">>>>>>>> PUBLISHING RELEASE FOR REPO"
|
||||||
|
bash scripts/release.sh
|
||||||
|
echo ">>>>>>>> PUBLISHING TO CRATES.IO NEXT"
|
||||||
|
sleep 2
|
||||||
|
cargo publish
|
||||||
|
echo ">>>>>>>> PUBLISHING TO CSCHERR.DE NEXT"
|
||||||
|
sleep 2
|
||||||
|
cargo publish --registry cscherr
|
Reference in a new issue