first commit
All checks were successful
ci/woodpecker/push/woodpecker/1 Pipeline was successful
ci/woodpecker/push/woodpecker/3 Pipeline was successful
ci/woodpecker/push/woodpecker/2 Pipeline was successful

This commit is contained in:
silvana 2024-06-11 07:24:37 +02:00
commit a3043a0aaa
Signed by: silvana
GPG key ID: 889CA3FB0F54CDCC
6 changed files with 64 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/target

25
.woodpecker.yml Normal file
View file

@ -0,0 +1,25 @@
matrix:
RUST: [stable, beta, nightly]
steps:
fmt:
image: rust:alpine
environment: [CARGO_TERM_COLOR=always]
commands:
- rustup default $RUST
- rustup component add rustfmt
- cargo fmt -- --check
clippy:
image: rust:alpine
environment: [CARGO_TERM_COLOR=always]
commands:
- rustup default $RUST
- rustup component add clippy
- cargo clippy -- -D warnings
test:
image: rust:alpine
environment: [CARGO_TERM_COLOR=always]
commands:
- rustup default $RUST
- cargo check
- cargo test

7
Cargo.lock generated Normal file
View file

@ -0,0 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "template"
version = "0.1.0"

27
Cargo.toml Normal file
View file

@ -0,0 +1,27 @@
[package]
name = "template"
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"
nursery = { level = "deny", priority = -1 }
pedantic = { level = "deny", priority = -1 }
unwrap_used = "deny"
[profile.dev]
panic = "abort"
[profile.release]
opt-level = "z" # Optimize for size.
lto = true # Enable Link Time Optimization
codegen-units = 1 # Reduce number of codegen units to increase optimizations.
panic = "abort" # Abort on panic
strip = true # Automatically strip symbols from the binary.

1
rustfmt.toml Normal file
View file

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

3
src/main.rs Normal file
View file

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