-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use [lints] in Cargo.toml and apply more lints
- Loading branch information
Showing
11 changed files
with
102 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,32 @@ | ||
# Rustfmt configuration | ||
# https://github.com/rust-lang/rustfmt/blob/HEAD/Configurations.md | ||
|
||
# Rustfmt cannot format long lines inside macros, but this option detects this. | ||
# This is unstable (tracking issue: https://github.com/rust-lang/rustfmt/issues/3391) | ||
error_on_line_overflow = true | ||
|
||
# Override the default formatting style. | ||
# See https://internals.rust-lang.org/t/running-rustfmt-on-rust-lang-rust-and-other-rust-lang-repositories/8732/81. | ||
use_small_heuristics = "Max" | ||
# See https://github.com/rust-dev-tools/fmt-rfcs/issues/149. | ||
# This is unstable (tracking issue: https://github.com/rust-lang/rustfmt/issues/3370) | ||
overflow_delimited_expr = true | ||
# This is unstable (tracking issue: none). | ||
imports_granularity = "Crate" | ||
# This is unstable (tracking issue: none). | ||
group_imports = "StdExternalCrate" | ||
|
||
# Apply rustfmt to more places. | ||
# This is unstable (tracking issue: https://github.com/rust-lang/rustfmt/issues/3348). | ||
format_code_in_doc_comments = true | ||
|
||
# Automatically fix deprecated style. | ||
use_field_init_shorthand = true | ||
use_try_shorthand = true | ||
|
||
# Set the default settings again to always apply the proper formatting without | ||
# being affected by the editor settings. | ||
edition = "2021" | ||
hard_tabs = false | ||
newline_style = "Unix" | ||
tab_spaces = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
[package] | ||
name = "build-libunwind" | ||
# TODO: Remove version and publish fields once 1.75 is stable. | ||
version = "0.0.0" | ||
edition = "2021" | ||
publish = false | ||
|
||
[dependencies] | ||
anyhow = "1" | ||
cc = "1" | ||
fs-err = "2" | ||
|
||
[lints.rust] | ||
rust_2018_idioms = "warn" | ||
single_use_lifetimes = "warn" | ||
unsafe_op_in_unsafe_fn = "warn" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
|
||
#![no_main] | ||
#![no_std] | ||
#![warn(rust_2018_idioms)] | ||
|
||
use semihosting::println; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters