diff --git a/Cargo.toml b/Cargo.toml index d48aae5..0bcaceb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,3 +29,22 @@ baseview = { git = "https://git.alexjanka.com/alex/baseview" } [patch.crates-io] anymap = { git = "https://git.alexjanka.com/alex/anymap" } + +[workspace.lints.clippy] +pedantic = "warn" +cast_precision_loss = { level = "allow", priority = 1 } +doc_markdown = { level = "allow", priority = 1 } +if_not_else = { level = "allow", priority = 1 } +items_after_statements = { level = "allow", priority = 1 } +match_wildcard_for_single_variants = { level = "allow", priority = 1 } +missing_errors_doc = { level = "allow", priority = 1 } +missing_panics_doc = { level = "allow", priority = 1 } +module_inception = { level = "allow", priority = 1 } +needless_pass_by_value = { level = "allow", priority = 1 } +similar_names = { level = "allow", priority = 1 } +too_many_lines = { level = "allow", priority = 1 } +type_complexity = { level = "allow", priority = 1 } +unreadable_literal = { level = "allow", priority = 1 } +unused_self = { level = "allow", priority = 1 } +cast_possible_truncation = { level = "allow", priority = 1 } +default_trait_access = { level = "allow", priority = 1 } diff --git a/cli/Cargo.toml b/cli/Cargo.toml index a184dcd..b76cb36 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -4,6 +4,9 @@ version = "0.1.0" edition = "2021" description = "TWINC Game Boy (CGB/DMG) emulator CLI" +[lints] +workspace = true + [package.metadata.bundle] identifier = "com.alexjanka.TWINC.cli" diff --git a/frontend-common/Cargo.toml b/frontend-common/Cargo.toml index 23fb31d..d0fdffa 100644 --- a/frontend-common/Cargo.toml +++ b/frontend-common/Cargo.toml @@ -4,6 +4,9 @@ version = "0.5.1" edition = "2021" description = "Frontend common library for TWINC Game Boy (CGB/DMG) emulator" +[lints] +workspace = true + [features] default = [] pixels = ["gb-emu-lib/pixels-renderer"] diff --git a/gb-vst/Cargo.toml b/gb-vst/Cargo.toml index 739ef00..0c45034 100644 --- a/gb-vst/Cargo.toml +++ b/gb-vst/Cargo.toml @@ -3,6 +3,9 @@ name = "twinc_emu_vst" version = "0.5.1" edition = "2021" +[lints] +workspace = true + [lib] crate-type = ["cdylib", "rlib"] diff --git a/gui/Cargo.toml b/gui/Cargo.toml index bfdcc51..86ff9a1 100644 --- a/gui/Cargo.toml +++ b/gui/Cargo.toml @@ -4,6 +4,9 @@ version = "0.1.0" edition = "2021" description = "TWINC Game Boy (CGB/DMG) emulator GUI" +[lints] +workspace = true + [package.metadata.bundle] identifier = "com.alexjanka.TWINC.gui" osx_file_extensions = [[["Game Boy ROM", "Viewer"], ["gb", "gbc"]]] diff --git a/lib/Cargo.toml b/lib/Cargo.toml index 0da1149..351fb0a 100644 --- a/lib/Cargo.toml +++ b/lib/Cargo.toml @@ -3,6 +3,9 @@ name = "gb-emu-lib" version = "0.5.1" edition = "2021" +[lints] +workspace = true + [features] default = ["config"] clocked-serial = [] diff --git a/xtask/Cargo.toml b/xtask/Cargo.toml index db1ce59..7f41c9f 100644 --- a/xtask/Cargo.toml +++ b/xtask/Cargo.toml @@ -3,6 +3,9 @@ name = "xtask" version = "0.1.0" edition = "2021" +[lints] +workspace = true + # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies]