Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,28 @@ members = ["crates/*"]
[[bin]]
name = "bevy_editor_standalone"
path = "crates/bevy_editor/src/main.rs"

[workspace.lints.clippy]
doc_markdown = "warn"
manual_let_else = "warn"
match_same_arms = "warn"
redundant_closure_for_method_calls = "warn"
redundant_else = "warn"
semicolon_if_nothing_returned = "warn"
type_complexity = "allow"
undocumented_unsafe_blocks = "warn"
unwrap_or_default = "warn"

ptr_as_ptr = "warn"
ptr_cast_constness = "warn"
ref_as_ptr = "warn"

[workspace.lints.rust]
missing_docs = "warn"
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(docsrs_dep)'] }
unsafe_code = "deny"
unsafe_op_in_unsafe_fn = "warn"
unused_qualifications = "warn"

[lints]
workspace = true
3 changes: 3 additions & 0 deletions crates/bevy_color_picker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ version = "0.1.0"
edition = "2021"

[dependencies]

[lints]
workspace = true
1 change: 1 addition & 0 deletions crates/bevy_color_picker/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//! A color picker widget for Bevy applications.

/// an add function that adds two numbers
pub fn add(left: u64, right: u64) -> u64 {
left + right
}
Expand Down
3 changes: 3 additions & 0 deletions crates/bevy_command_palette/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ version = "0.1.0"
edition = "2021"

[dependencies]

[lints]
workspace = true
1 change: 1 addition & 0 deletions crates/bevy_command_palette/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
//!
//! Search and keyboard shortcuts will both be supported.

/// an add function that adds two numbers
pub fn add(left: u64, right: u64) -> u64 {
left + right
}
Expand Down
3 changes: 3 additions & 0 deletions crates/bevy_context_menu/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ version = "0.1.0"
edition = "2021"

[dependencies]

[lints]
workspace = true
1 change: 1 addition & 0 deletions crates/bevy_context_menu/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//! This crate opens up a menu with a list of options when the user right-clicks (or otherwise triggers the context menu),
//! based on what the user has clicked on.

/// an add function that adds two numbers
pub fn add(left: u64, right: u64) -> u64 {
left + right
}
Expand Down
3 changes: 3 additions & 0 deletions crates/bevy_editor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ version = "0.1.0"
edition = "2021"

[dependencies]

[lints]
workspace = true
3 changes: 3 additions & 0 deletions crates/bevy_editor_camera/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ version = "0.1.0"
edition = "2021"

[dependencies]

[lints]
workspace = true
1 change: 1 addition & 0 deletions crates/bevy_editor_camera/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//! A set of camera controllers suitable for controlling editor-style views and scene exploration.

/// an add function that adds two numbers
pub fn add(left: u64, right: u64) -> u64 {
left + right
}
Expand Down
3 changes: 3 additions & 0 deletions crates/bevy_inspector/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ version = "0.1.0"
edition = "2021"

[dependencies]

[lints]
workspace = true
1 change: 1 addition & 0 deletions crates/bevy_inspector/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
//!
//! Data can be viewed and modified in real-time, with changes being reflected in the application.

/// an add function that adds two numbers
pub fn add(left: u64, right: u64) -> u64 {
left + right
}
Expand Down
3 changes: 3 additions & 0 deletions crates/bevy_localization/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ version = "0.1.0"
edition = "2021"

[dependencies]

[lints]
workspace = true
1 change: 1 addition & 0 deletions crates/bevy_localization/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//! A localization framework for Bevy applications, backed by Fluent.

/// an add function that adds two numbers
pub fn add(left: u64, right: u64) -> u64 {
left + right
}
Expand Down
3 changes: 3 additions & 0 deletions crates/bevy_menu_bar/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ version = "0.1.0"
edition = "2021"

[dependencies]

[lints]
workspace = true
1 change: 1 addition & 0 deletions crates/bevy_menu_bar/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//! This runs along the top of the screen and provides a list of options to the user,
//! such as "File", "Edit", "View", etc.

/// an add function that adds two numbers
pub fn add(left: u64, right: u64) -> u64 {
left + right
}
Expand Down
3 changes: 3 additions & 0 deletions crates/bevy_panes/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ version = "0.1.0"
edition = "2021"

[dependencies]

[lints]
workspace = true
1 change: 1 addition & 0 deletions crates/bevy_panes/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//! Resizable, draggable, collapsible and dockable panes for Bevy.

/// an add function that adds two numbers
pub fn add(left: u64, right: u64) -> u64 {
left + right
}
Expand Down
3 changes: 3 additions & 0 deletions crates/bevy_preferences/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ version = "0.1.0"
edition = "2021"

[dependencies]

[lints]
workspace = true
1 change: 1 addition & 0 deletions crates/bevy_preferences/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//! A straightforward way to store and retrieve user preferences on disk for Bevy applications.

/// an add function that adds two numbers
pub fn add(left: u64, right: u64) -> u64 {
left + right
}
Expand Down
3 changes: 3 additions & 0 deletions crates/bevy_scene_tree/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ version = "0.1.0"
edition = "2021"

[dependencies]

[lints]
workspace = true
1 change: 1 addition & 0 deletions crates/bevy_scene_tree/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//! An interactive, collapsible tree view for hierarchical ECS data in Bevy.

/// an add function that adds two numbers
pub fn add(left: u64, right: u64) -> u64 {
left + right
}
Expand Down
3 changes: 3 additions & 0 deletions crates/bevy_toolbar/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ version = "0.1.0"
edition = "2021"

[dependencies]

[lints]
workspace = true
1 change: 1 addition & 0 deletions crates/bevy_toolbar/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//! Toolbars are a common UI element in many applications, providing quick access to frequently used commands,
//! and typically display small icons with on-hover tooltips.

/// an add function that adds two numbers
pub fn add(left: u64, right: u64) -> u64 {
left + right
}
Expand Down
3 changes: 3 additions & 0 deletions crates/bevy_tooltips/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ version = "0.1.0"
edition = "2021"

[dependencies]

[lints]
workspace = true
1 change: 1 addition & 0 deletions crates/bevy_tooltips/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//! A tooltip system for Bevy applications, providing contextual information on hover.

/// an add function that adds two numbers
pub fn add(left: u64, right: u64) -> u64 {
left + right
}
Expand Down
3 changes: 3 additions & 0 deletions crates/bevy_undo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ version = "0.1.0"
edition = "2021"

[dependencies]

[lints]
workspace = true
1 change: 1 addition & 0 deletions crates/bevy_undo/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//! An action-based undo-redo system for Bevy ECS data.

/// an add function that adds two numbers
pub fn add(left: u64, right: u64) -> u64 {
left + right
}
Expand Down
3 changes: 3 additions & 0 deletions crates/bevy_widgets/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ version = "0.1.0"
edition = "2021"

[dependencies]

[lints]
workspace = true
1 change: 1 addition & 0 deletions crates/bevy_widgets/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//! A collection of basic UI widgets for Bevy applications.

/// an add function that adds two numbers
pub fn add(left: u64, right: u64) -> u64 {
left + right
}
Expand Down