first commit
This commit is contained in:
commit
a3043a0aaa
6 changed files with 64 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/target
|
25
.woodpecker.yml
Normal file
25
.woodpecker.yml
Normal 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
7
Cargo.lock
generated
Normal 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
27
Cargo.toml
Normal 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
1
rustfmt.toml
Normal file
|
@ -0,0 +1 @@
|
||||||
|
hard_tabs=true
|
3
src/main.rs
Normal file
3
src/main.rs
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
fn main() {
|
||||||
|
println!("Hello, world!");
|
||||||
|
}
|
Loading…
Reference in a new issue