create super strict rust config
This commit is contained in:
commit
d56ebb7e16
36 changed files with 2969 additions and 0 deletions
12
crates/the-app/Cargo.toml
Normal file
12
crates/the-app/Cargo.toml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
[package]
|
||||
name = "the-app"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
license = "EUPL-1.2"
|
||||
|
||||
[dependencies]
|
||||
the-lib.workspace = true
|
||||
regex = "*"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
19
crates/the-app/src/main.rs
Normal file
19
crates/the-app/src/main.rs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#[must_use]
|
||||
pub fn as_u64(number: u8) -> u64 {
|
||||
u64::from(number)
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let mut nums = vec![1, 2, 3];
|
||||
nums.clear();
|
||||
|
||||
println!("Hello, world! {nums:?}");
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
#[test]
|
||||
fn trivial() {
|
||||
assert_eq!(1, 1);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue