initial commit
Signed-off-by: Soc Virnyl Estela <contact@uncomfyhalomacro.pl>
This commit is contained in:
commit
4afa1403b3
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
/target
|
23
Cargo.lock
generated
Normal file
23
Cargo.lock
generated
Normal file
|
@ -0,0 +1,23 @@
|
|||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
version = 3
|
||||
|
||||
[[package]]
|
||||
name = "fanatic"
|
||||
version = "0.1.0"
|
||||
|
||||
[[package]]
|
||||
name = "fanatic-cli"
|
||||
version = "0.1.0"
|
||||
|
||||
[[package]]
|
||||
name = "fanatic-gui"
|
||||
version = "0.1.0"
|
||||
|
||||
[[package]]
|
||||
name = "fanatic-markdown"
|
||||
version = "0.1.0"
|
||||
|
||||
[[package]]
|
||||
name = "fanatic-utils"
|
||||
version = "0.1.0"
|
47
Cargo.toml
Normal file
47
Cargo.toml
Normal file
|
@ -0,0 +1,47 @@
|
|||
[workspace]
|
||||
default-members = [
|
||||
"fanatic",
|
||||
"fanatic-utils",
|
||||
"fanatic-markdown",
|
||||
"fanatic-gui",
|
||||
"fanatic-cli"
|
||||
]
|
||||
|
||||
members = [
|
||||
"fanatic",
|
||||
"fanatic-utils",
|
||||
"fanatic-markdown",
|
||||
"fanatic-gui",
|
||||
"fanatic-cli"
|
||||
]
|
||||
|
||||
resolver = "2"
|
||||
|
||||
[workspace.package]
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
license = "MPL-2.0"
|
||||
|
||||
[workspace.dependencies]
|
||||
|
||||
[workspace.lints.rust]
|
||||
warnings = "deny"
|
||||
unused_extern_crates = "warn"
|
||||
|
||||
[workspace.lints.clippy]
|
||||
# Enable some groups of clippy lints.
|
||||
suspicious = "deny"
|
||||
perf = "deny"
|
||||
# Specific lints to enforce.
|
||||
todo = "warn"
|
||||
unimplemented = "deny"
|
||||
unwrap_used = "deny"
|
||||
expect_used = "deny"
|
||||
panic = "deny"
|
||||
await_holding_lock = "deny"
|
||||
needless_pass_by_value = "deny"
|
||||
trivially_copy_pass_by_ref = "deny"
|
||||
disallowed_types = "deny"
|
||||
manual_let_else = "deny"
|
||||
unreachable = "allow"
|
||||
unit_arg = "allow"
|
7
fanatic-cli/Cargo.toml
Normal file
7
fanatic-cli/Cargo.toml
Normal file
|
@ -0,0 +1,7 @@
|
|||
[package]
|
||||
name = "fanatic-cli"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
|
||||
[dependencies]
|
14
fanatic-cli/src/lib.rs
Normal file
14
fanatic-cli/src/lib.rs
Normal file
|
@ -0,0 +1,14 @@
|
|||
pub fn add(left: usize, right: usize) -> usize {
|
||||
left + right
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn it_works() {
|
||||
let result = add(2, 2);
|
||||
assert_eq!(result, 4);
|
||||
}
|
||||
}
|
8
fanatic-gui/Cargo.toml
Normal file
8
fanatic-gui/Cargo.toml
Normal file
|
@ -0,0 +1,8 @@
|
|||
[package]
|
||||
name = "fanatic-gui"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
|
||||
[dependencies]
|
||||
|
14
fanatic-gui/src/lib.rs
Normal file
14
fanatic-gui/src/lib.rs
Normal file
|
@ -0,0 +1,14 @@
|
|||
pub fn add(left: usize, right: usize) -> usize {
|
||||
left + right
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn it_works() {
|
||||
let result = add(2, 2);
|
||||
assert_eq!(result, 4);
|
||||
}
|
||||
}
|
8
fanatic-markdown/Cargo.toml
Normal file
8
fanatic-markdown/Cargo.toml
Normal file
|
@ -0,0 +1,8 @@
|
|||
[package]
|
||||
name = "fanatic-markdown"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
|
||||
[dependencies]
|
||||
|
14
fanatic-markdown/src/lib.rs
Normal file
14
fanatic-markdown/src/lib.rs
Normal file
|
@ -0,0 +1,14 @@
|
|||
pub fn add(left: usize, right: usize) -> usize {
|
||||
left + right
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn it_works() {
|
||||
let result = add(2, 2);
|
||||
assert_eq!(result, 4);
|
||||
}
|
||||
}
|
8
fanatic-utils/Cargo.toml
Normal file
8
fanatic-utils/Cargo.toml
Normal file
|
@ -0,0 +1,8 @@
|
|||
[package]
|
||||
name = "fanatic-utils"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
|
||||
[dependencies]
|
||||
|
14
fanatic-utils/src/lib.rs
Normal file
14
fanatic-utils/src/lib.rs
Normal file
|
@ -0,0 +1,14 @@
|
|||
pub fn add(left: usize, right: usize) -> usize {
|
||||
left + right
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn it_works() {
|
||||
let result = add(2, 2);
|
||||
assert_eq!(result, 4);
|
||||
}
|
||||
}
|
6
fanatic-wasm/Cargo.toml
Normal file
6
fanatic-wasm/Cargo.toml
Normal file
|
@ -0,0 +1,6 @@
|
|||
[package]
|
||||
name = "fanatic-wasm"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
14
fanatic-wasm/src/lib.rs
Normal file
14
fanatic-wasm/src/lib.rs
Normal file
|
@ -0,0 +1,14 @@
|
|||
pub fn add(left: usize, right: usize) -> usize {
|
||||
left + right
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn it_works() {
|
||||
let result = add(2, 2);
|
||||
assert_eq!(result, 4);
|
||||
}
|
||||
}
|
9
fanatic/Cargo.toml
Normal file
9
fanatic/Cargo.toml
Normal file
|
@ -0,0 +1,9 @@
|
|||
[package]
|
||||
name = "fanatic"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
|
||||
[dependencies]
|
||||
|
||||
|
3
fanatic/src/main.rs
Normal file
3
fanatic/src/main.rs
Normal file
|
@ -0,0 +1,3 @@
|
|||
fn main() {
|
||||
println!("Hello, world!");
|
||||
}
|
Loading…
Reference in a new issue