Skip to content

Commit 509a1f6

Browse files
NiklasEianchpop
authored andcommitted
Replace merge_imports with imports_granularity=Crate (bevyengine#1479)
See rust-lang/rustfmt#4634
1 parent fa73036 commit 509a1f6

File tree

368 files changed

+23370
-13751
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

368 files changed

+23370
-13751
lines changed

Diff for: .cargo/config_fast_builds

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Rename this file to `config.toml` to enable "fast build" configuration. Please read the notes below.
1+
# Add the contents of this file to `config.toml` to enable "fast build" configuration. Please read the notes below.
22

33
# NOTE: For maximum performance, build using a nightly compiler
44
# If you are using rust stable, remove the "-Zshare-generics=y" below (as well as "-Csplit-debuginfo=unpacked" when building on macOS).

Diff for: .github/CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Contributing
22

33
Please see the [Contributing Code](https://bevyengine.org/learn/book/contributing/code/) section of
4-
[The Book](https://bevyengine.org/learn/book/introduction/).
4+
[The Book](https://bevyengine.org/learn/book/introduction/).

Diff for: .github/ISSUE_TEMPLATE/bug_report.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,27 @@ labels: ''
66
assignees: ''
77
---
88

9-
**Bevy version**
9+
## Bevy version
1010

1111
The release number or commit hash of the version you're using.
1212

13-
**Operating system & version**
13+
## Operating system & version
1414

1515
Ex: Windows 10, Ubuntu 18.04, iOS 14.
1616

17-
**What you did**
17+
## What you did
1818

1919
The steps you took to uncover this bug. Please list full reproduction steps if
2020
feasible.
2121

22-
**What you expected to happen**
22+
## What you expected to happen
2323

2424
What you think should've happened if everything was working properly.
2525

26-
**What actually happened**
26+
## What actually happened
2727

2828
The actual result of the actions you described.
2929

30-
**Additional information**
30+
## Additional information
3131

3232
Any additional information you would like to add such as screenshots, logs, etc.

Diff for: .github/ISSUE_TEMPLATE/feature_request.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ labels: ''
66
assignees: ''
77
---
88

9-
**What problem does this solve or what need does it fill?**
9+
## What problem does this solve or what need does it fill?
1010

1111
A description of why this particular feature should be added.
1212

13-
**What solution would you like?**
13+
## What solution would you like?
1414

1515
The solution you propose for the problem presented.
1616

17-
**What alternative(s) have you considered?**
17+
## What alternative(s) have you considered?
1818

1919
Other solutions to solve and/or work around the problem presented.
2020

21-
**Additional context**
21+
## Additional context
2222

2323
Any other information you would like to add such as related previous work,
2424
screenshots, benchmarks, etc.

Diff for: .github/bors.toml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
status = [
2+
"build (stable, windows-latest)",
3+
"build (stable, ubuntu-latest)",
4+
"build (stable, macos-latest)",
5+
"build (nightly, ubuntu-latest)",
6+
"build-wasm (stable, ubuntu-latest)",
7+
"build-wasm (nightly, ubuntu-latest)",
8+
"build-android",
9+
"markdownlint",
10+
]
11+
12+
use_squash_merge = true

Diff for: .github/linters/.markdown-lint.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"MD013": false
3+
}

Diff for: .github/workflows/ci.yml

+21-10
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
name: CI
22

33
on:
4-
push:
5-
branches: [master]
64
pull_request:
7-
branches: [master]
5+
push:
6+
branches: [main, staging, trying]
87

98
env:
109
CARGO_TERM_COLOR: always
@@ -35,13 +34,8 @@ jobs:
3534
if: runner.os == 'linux'
3635

3736
- name: Check the format
38-
run: cargo fmt --all -- --check
39-
if: runner.os == 'linux' && matrix.toolchain == 'stable'
40-
41-
# type complexity must be ignored because we use huge templates for queries
42-
# -A clippy::manual-strip: strip_prefix support was added in 1.45. we want to support earlier rust versions
43-
- name: Clippy
44-
run: cargo clippy --all-targets --all-features -- -D warnings -A clippy::type_complexity -A clippy::manual-strip
37+
# See tools/ci/src/main.rs for the commands this runs
38+
run: cargo run -p ci
4539
if: runner.os == 'linux' && matrix.toolchain == 'stable'
4640

4741
- name: Build & run tests
@@ -81,3 +75,20 @@ jobs:
8175
run: cargo install cargo-apk
8276
- name: Build APK
8377
run: cargo apk build --example android
78+
79+
markdownlint:
80+
runs-on: ubuntu-latest
81+
steps:
82+
- uses: actions/checkout@v2
83+
with:
84+
# Full git history is needed to get a proper list of changed files within `super-linter`
85+
fetch-depth: 0
86+
87+
- name: Run Markdown Lint
88+
uses: github/[email protected]
89+
env:
90+
VALIDATE_ALL_CODEBASE: false
91+
VALIDATE_MARKDOWN: true
92+
DEFAULT_BRANCH: master
93+
# Not needed here as only one Linter is used.
94+
#GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Diff for: .github/workflows/ios.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
toolchain: stable
1919
override: true
2020

21-
- uses: actions/cache@v2
21+
- uses: actions/cache@v2.1.4
2222
with:
2323
path: |
2424
target

Diff for: .github/workflows/rebase.yml

-22
This file was deleted.

Diff for: CHANGELOG.md

+12-10
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
1+
<!-- MD024 - We want repeated headings in a changelog file -->
2+
<!-- markdownlint-disable-file MD024 -->
3+
14
# Changelog
25

36
While we try to keep the `Unreleased` changes updated, it is often behind and does not include
47
all merged pull requests. To see a list of all changes since the latest release, you may compare
58
current changes on git with [previous release tags][git_tag_comparison].
69

7-
[git_tag_comparison]: https://github.com/bevyengine/bevy/compare/v0.4.0...master
8-
10+
[git_tag_comparison]: https://github.com/bevyengine/bevy/compare/v0.4.0...main
911

1012
## Version 0.4.0 (2020-12-19)
1113

1214
### Added
15+
1316
- [add bevymark benchmark example][273]
14-
- [gltf: support camera and fix hierarchy][772]
17+
- [gltf: support camera and fix hierarchy][772]
1518
- [Add tracing spans to schedules, stages, systems][789]
1619
- [add example that represents contributors as bevy icons][801]
1720
- [Add received character][805]
18-
- [Add bevy_dylib to force dynamic linking of bevy][808]
21+
- [Add bevy_dylib to force dynamic linking of bevy][808]
1922
- [Added RenderPass::set_scissor_rect][815]
2023
- [`bevy_log`][836]
2124
- Adds logging functionality as a Plugin.
@@ -33,7 +36,7 @@ current changes on git with [previous release tags][git_tag_comparison].
3336
- Replaces the properties system
3437
- [Add support for Apple Silicon][928]
3538
- [Live reloading of shaders][937]
36-
- [ Store mouse cursor position in Window][940]
39+
- [Store mouse cursor position in Window][940]
3740
- [Add removal_detection example][945]
3841
- [Additional vertex attribute value types][946]
3942
- [Added WindowFocused event][956]
@@ -46,9 +49,9 @@ current changes on git with [previous release tags][git_tag_comparison].
4649

4750
### Changed
4851

49-
- [delegate layout reflection to RenderResourceContext][691]
52+
- [delegate layout reflection to RenderResourceContext][691]
5053
- [Fall back to remove components one by one when failing to remove a bundle][719]
51-
- [Port hecs derive macro improvements][761]
54+
- [Port hecs derive macro improvements][761]
5255
- [Use glyph_brush_layout and add text alignment support][765]
5356
- [upgrade glam and hexasphere][791]
5457
- [Flexible ECS Params][798]
@@ -242,7 +245,7 @@ current changes on git with [previous release tags][git_tag_comparison].
242245
- [`FrameTimeDiagnosticsPlugin` now shows "frame count" in addition to "frame time" and "fps"][678]
243246
- [Add hierarchy example][565]
244247
- [`WgpuPowerOptions` for choosing between low power, high performance, and adaptive power][397]
245-
- Derive `Debug` for more types: [#597][597], [#632][632]
248+
- Derive `Debug` for more types: [#597][597], [#632][632]
246249
- Index buffer specialization
247250
- [Allows the use of U32 indices in Mesh index buffers in addition to the usual U16 indices][568]
248251
- [Switch to u32 indices by default][572]
@@ -286,7 +289,7 @@ current changes on git with [previous release tags][git_tag_comparison].
286289
- [Migrated to Rodio 0.12][692]
287290
- New method of playing audio can be found in the examples.
288291
- Added support for inserting custom initial values for `Local<T>` system resources [#745][745]
289-
292+
290293
### Fixed
291294

292295
- [Properly update bind group ids when setting dynamic bindings][560]
@@ -359,7 +362,6 @@ current changes on git with [previous release tags][git_tag_comparison].
359362
[745]: https://github.com/bevyengine/bevy/pull/745
360363
[752]: https://github.com/bevyengine/bevy/pull/752
361364

362-
363365
## Version 0.2.1 (2020-9-20)
364366

365367
### Fixed

Diff for: CREDITS.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
* hecs
66
* legion_transform
77
* wgpu-rs examples
8-
* yaks: ArchetypeSet, borrowed some ideas from their scheduler implementation
8+
* yaks: ArchetypeSet, borrowed some ideas from their scheduler implementation
99

1010
## Inspiration
1111

1212
* game engines: amethyst, coffee
13-
* ecs: legion, shipyard, yaks
13+
* ecs: legion, shipyard, yaks
1414

1515
## Assets
1616

1717
* Generic RPG Pack (CC0 license) by [Bakudas](https://twitter.com/bakudas) and [Gabe Fern](https://twitter.com/_Gabrielfer)
18-
* Environment maps (`.hdr` files) from [HDRIHaven](https://hdrihaven.com) (CC0 license)
18+
* Environment maps (`.hdr` files) from [HDRIHaven](https://hdrihaven.com) (CC0 license)

0 commit comments

Comments
 (0)