File tree 3 files changed +36
-0
lines changed 3 files changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ before_install:
11
11
- sudo apt-get install -y binutils-dev libunwind8-dev libcurl4-openssl-dev libelf-dev libdw-dev cmake gcc binutils-dev libiberty-dev
12
12
13
13
script :
14
+ # Check formatting.
15
+ - if [ "$(rustup show | grep default | grep stable)" != "" ]; then rustup component add rustfmt && cargo fmt --all -- --check; fi
16
+ - if [ "$(rustup show | grep default | grep 1.34.2)" != "" ]; then rustup component add rustfmt && cd fuzz && cargo fmt --all -- --check && cd ../; fi
14
17
# Build workspaces with Rust stable, beta, and 1.34.0
15
18
- if [ "$(rustup show | grep default | grep 1.22.0)" == "" ]; then RUSTFLAGS="-C link-dead-code" cargo build --verbose; fi
16
19
# Build lightning workspace with Rust 1.22.0
Original file line number Diff line number Diff line change
1
+ # Non-defaults
2
+ hard_tabs = true # use tab characters for indentation, spaces for alignment
3
+ use_field_init_shorthand = true
4
+ max_width = 5000 # Initially set this to a big number to split the diff of the formatter into multiple commits.
5
+
6
+ # Default
7
+ edition = " 2015"
8
+ force_explicit_abi = true
9
+ merge_derives = true
10
+ newline_style = " Auto" # Unix or Windows line endings
11
+ remove_nested_parens = true
12
+ reorder_imports = true
13
+ reorder_modules = true
14
+ tab_spaces = 4
15
+ use_small_heuristics = " Default"
16
+ use_try_shorthand = false
Original file line number Diff line number Diff line change
1
+ # Non-defaults
2
+ hard_tabs = true # use tab characters for indentation, spaces for alignment
3
+ use_field_init_shorthand = true
4
+ max_width = 5000 # Initially set this to a big number to split the diff of the formatter into multiple commits.
5
+
6
+ # Default
7
+ edition = " 2015"
8
+ fn_args_layout = " Tall"
9
+ force_explicit_abi = true
10
+ merge_derives = true
11
+ newline_style = " Auto" # Unix or Windows line endings
12
+ remove_nested_parens = true
13
+ reorder_imports = true
14
+ reorder_modules = true
15
+ tab_spaces = 4
16
+ use_small_heuristics = " Default"
17
+ use_try_shorthand = false
You can’t perform that action at this time.
0 commit comments