This commit is contained in:
parent
ae6a99bbcb
commit
107362b682
4 changed files with 25 additions and 1 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -126,6 +126,10 @@ dependencies = [
|
|||
"password-hash",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "arithmetics"
|
||||
version = "0.1.0"
|
||||
|
||||
[[package]]
|
||||
name = "async-trait"
|
||||
version = "0.1.80"
|
||||
|
|
|
@ -25,10 +25,13 @@ members = [
|
|||
"members/diesel-demo",
|
||||
"members/ptlog",
|
||||
"members/hello-world",
|
||||
"members/statusline", "members/clap-repl-demo",
|
||||
"members/statusline",
|
||||
"members/clap-repl-demo",
|
||||
"members/arithmetics",
|
||||
]
|
||||
default-members = [
|
||||
".",
|
||||
"members/arithmetics",
|
||||
"members/statusline",
|
||||
"members/ptlog",
|
||||
"members/diesel-demo",
|
||||
|
|
6
members/arithmetics/Cargo.toml
Normal file
6
members/arithmetics/Cargo.toml
Normal file
|
@ -0,0 +1,6 @@
|
|||
[package]
|
||||
name = "arithmetics"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
11
members/arithmetics/src/main.rs
Normal file
11
members/arithmetics/src/main.rs
Normal file
|
@ -0,0 +1,11 @@
|
|||
// If you're confused what this is: it's an annotation that tells a common linting thing to shut up
|
||||
// about this program calculating things that should normally be precalculated
|
||||
//
|
||||
// If you're still confused, feel free to ignore this, it's not important
|
||||
#![allow(clippy::eq_op)] // thats the point
|
||||
#![allow(clippy::identity_op)] // thats the point
|
||||
|
||||
fn main() {
|
||||
println!("1^1={}", 1 ^ 1);
|
||||
println!("0^1={}", 0 ^ 1);
|
||||
}
|
Loading…
Add table
Reference in a new issue