~repos /rust-embed
git clone https://pyrossh.dev/repos/rust-embed.git
rust macro which loads files into the rust binary at compile time during release and loads the file from the fs during dev.
2d655637
—
Luka Dornhecker 7 years ago
check cargo fmt on ci build
- appveyor.yml +3 -0
- rustfmt.toml +1 -1
appveyor.yml
CHANGED
|
@@ -107,6 +107,8 @@ install:
|
|
|
107
107
|
- appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
|
|
108
108
|
- rustup-init -yv --default-toolchain %channel% --default-host %target%
|
|
109
109
|
- set PATH=%PATH%;%USERPROFILE%\.cargo\bin
|
|
110
|
+
- rustup install nightly
|
|
111
|
+
- rustup component add rustfmt-preview --toolchain nightly
|
|
110
112
|
- if defined MSYS_BITS set PATH=C:\msys64\mingw%MSYS_BITS%\bin;C:\msys64\usr\bin;%PATH%
|
|
111
113
|
- rustc -vV
|
|
112
114
|
- cargo -vV
|
|
@@ -121,6 +123,7 @@ build: false
|
|
|
121
123
|
#directly or perform other testing commands. Rust will automatically be placed in the PATH
|
|
122
124
|
# environment variable.
|
|
123
125
|
test_script:
|
|
126
|
+
- cargo +nightly fmt --all -- --check
|
|
124
127
|
- cargo test --test lib
|
|
125
128
|
- cargo test --test lib --release
|
|
126
129
|
- cargo build --example basic
|
rustfmt.toml
CHANGED
|
@@ -6,4 +6,4 @@ fn_args_density = "Compressed"
|
|
|
6
6
|
max_width = 160
|
|
7
7
|
tab_spaces = 2
|
|
8
8
|
indent_style = "Block"
|
|
9
|
-
|
|
9
|
+
reorder_imports = true
|