-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add an option about display server protocol, and create document docs/cargo_features.md
#249
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
dbe7131
add option to make application run on wayland
VitalyAnkh 5c309e3
update document for --features wayland
VitalyAnkh 631f0f2
update comment in Cargo.toml, add docs/features.md to elaborate the f…
VitalyAnkh c277458
add link to docs/features.md in README.md
VitalyAnkh 29510ce
rename docs/features.md to docs/cargo_features.md
VitalyAnkh 0905479
resolve merge conflict
VitalyAnkh ec6cadf
Merge branch 'master' into master
VitalyAnkh 9c306ff
Merge branch 'master' into master
VitalyAnkh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Cargo Features | ||
|
||
## Default Features | ||
|
||
### bevy_audio | ||
|
||
Audio support. All audio formats support depends on this. | ||
|
||
### bevy_gltf | ||
|
||
[glTF](https://www.khronos.org/gltf/) support. | ||
|
||
### bevy_winit | ||
|
||
GUI support. | ||
|
||
### bevy_wgpu | ||
|
||
Make use of GPU via [WebGPU](https://gpuweb.github.io/gpuweb/) support. | ||
|
||
### png | ||
|
||
PNG picture format support. | ||
|
||
### hdr | ||
|
||
[HDR](https://en.wikipedia.org/wiki/High_dynamic_range) support. | ||
|
||
### mp3 | ||
|
||
Audio of mp3 format support. | ||
|
||
### x11 | ||
|
||
Make GUI applications use X11 procotol. You could enable wayland feature to override this. | ||
|
||
## Optional Features | ||
|
||
### profiler | ||
|
||
For profiler. | ||
|
||
### wgpu_trace | ||
|
||
For tracing wgpu. | ||
|
||
### flac | ||
|
||
FLAC audio fromat support. It's included in bevy_audio feature. | ||
|
||
### wav | ||
|
||
WAV audio format support. | ||
|
||
### vorbis | ||
|
||
Vorbis audio format support. | ||
|
||
### wayland | ||
|
||
Enable this to use Wayland display server protocol other than X11. |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I would prefer to leave non-default feature documentation out of the README. Instead, lets create a new
docs/features.md
file and link to it from the readme.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cart Done! I create a new
docs/features.md
file and link to it from the readme.The suggestions in
examples/README.md
is reversed for I think it's useful for people who are not familiar with cargo.How do you like it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Just one small set of changes: lets rename the file
cargo_features.md
, make the title# Cargo Features
and then in the main readme make it## [Bevy Cargo Features](docs/cargo_features.md)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!