-
Notifications
You must be signed in to change notification settings - Fork 45
Update screeps-game-api to Rust 2018. #161
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
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
0e6da19
Ran cargo fix --edition
ASalvail 129500e
Add edition flag to Cargo.toml
ASalvail 7acebee
Add edition flag for cargo-web
ASalvail 3813b28
First pass of cargo fix --edition-idioms
ASalvail 47e56b0
Add default rustfmt.toml
ASalvail 5b86942
Modified default rustfmt.toml
ASalvail c0e6c87
Transitioned macros to 2018 format
ASalvail 1ac8079
Removed dependency on serde-derive
ASalvail 120aa21
Fixed --all-features bugs
ASalvail 1960d11
Fix order of import statements using rustfmt
ASalvail 307cdc5
Fix warning due to configurable features and module visibility.
ASalvail 1516aa2
Fix order of import manually splitting std/external/crate
ASalvail b69dcaf
Fixed last import order, hopefully.
ASalvail 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 hidden or 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,6 +1,7 @@ | ||
[package] | ||
name = "cargo-screeps" | ||
version = "0.3.2" | ||
edition = "2018" | ||
authors = ["David Ross <[email protected]>"] | ||
documentation = "https://github.com/daboross/screeps-in-rust-via-wasm/cargo-screeps/" | ||
include = [ | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,6 +1,7 @@ | ||
[package] | ||
name = "screeps-game-api" | ||
version = "0.4.0" | ||
edition = "2018" | ||
authors = ["David Ross <[email protected]>"] | ||
documentation = "https://docs.rs/screeps-game-api/" | ||
include = [ | ||
|
@@ -26,8 +27,7 @@ name = "screeps" | |
log = "0.4" | ||
num-derive = "0.2" | ||
num-traits = "0.2" | ||
serde = "1" | ||
serde_derive = "1" | ||
serde = {version = "1", features = ["derive"]} | ||
serde_json = "1" | ||
scoped-tls = "0.1" | ||
stdweb = "0.4" | ||
|
This file contains hidden or 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,65 @@ | ||
max_width = 100 | ||
hard_tabs = false | ||
tab_spaces = 4 | ||
newline_style = "Auto" | ||
use_small_heuristics = "Default" | ||
indent_style = "Block" | ||
wrap_comments = true | ||
format_code_in_doc_comments = false | ||
comment_width = 80 | ||
normalize_comments = false | ||
normalize_doc_attributes = false | ||
format_strings = false | ||
format_macro_matchers = false | ||
format_macro_bodies = true | ||
empty_item_single_line = true | ||
struct_lit_single_line = true | ||
fn_single_line = false | ||
where_single_line = false | ||
imports_indent = "Block" | ||
imports_layout = "Mixed" | ||
merge_imports = true | ||
reorder_imports = true | ||
reorder_modules = true | ||
reorder_impl_items = false | ||
type_punctuation_density = "Wide" | ||
space_before_colon = false | ||
space_after_colon = true | ||
spaces_around_ranges = false | ||
binop_separator = "Front" | ||
remove_nested_parens = true | ||
combine_control_expr = true | ||
overflow_delimited_expr = false | ||
struct_field_align_threshold = 0 | ||
enum_discrim_align_threshold = 0 | ||
match_arm_blocks = true | ||
force_multiline_blocks = false | ||
fn_args_layout = "Tall" | ||
brace_style = "SameLineWhere" | ||
control_brace_style = "AlwaysSameLine" | ||
trailing_semicolon = true | ||
trailing_comma = "Vertical" | ||
match_block_trailing_comma = false | ||
blank_lines_upper_bound = 1 | ||
blank_lines_lower_bound = 0 | ||
edition = "2018" | ||
version = "One" | ||
inline_attribute_width = 0 | ||
merge_derives = true | ||
use_try_shorthand = false | ||
use_field_init_shorthand = false | ||
force_explicit_abi = true | ||
condense_wildcard_suffixes = false | ||
color = "Auto" | ||
required_version = "1.3.0" | ||
unstable_features = false | ||
disable_all_formatting = false | ||
skip_children = false | ||
hide_parse_errors = false | ||
error_on_line_overflow = false | ||
error_on_unformatted = false | ||
report_todo = "Never" | ||
report_fixme = "Never" | ||
ignore = [] | ||
emit_mode = "Files" | ||
make_backup = false |
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
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.
One
std::
belowserde::
here, but ¯\_(ツ)_/¯