~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.
88027902
—
pyros2097 5 years ago
use github actions for CI
- .github/FUNDING.yml +0 -4
- .github/workflows/test.yml +28 -0
- .travis.yml +0 -25
- appveyor.yml +0 -142
- changelog.md +11 -1
.github/FUNDING.yml
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
# These are supported funding model platforms
|
|
2
|
-
|
|
3
|
-
github: [pyros2097]
|
|
4
|
-
patreon: pyros2097
|
.github/workflows/test.yml
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
name: Test
|
|
2
|
+
on: [push]
|
|
3
|
+
jobs:
|
|
4
|
+
test:
|
|
5
|
+
runs-on: ${{ matrix.os }}
|
|
6
|
+
strategy:
|
|
7
|
+
matrix:
|
|
8
|
+
os: [ubuntu-latest, windows-latest, macOS-latest]
|
|
9
|
+
rust: [stable, nightly]
|
|
10
|
+
steps:
|
|
11
|
+
- uses: hecrj/setup-rust-action@v1
|
|
12
|
+
with:
|
|
13
|
+
rust-version: ${{ matrix.rust }}
|
|
14
|
+
- uses: actions/checkout@master
|
|
15
|
+
- name: Run tests
|
|
16
|
+
run: |
|
|
17
|
+
- cargo test --test lib
|
|
18
|
+
- cargo test --test lib --features "debug-embed"
|
|
19
|
+
- cargo test --test lib --release
|
|
20
|
+
- cargo test --test lib --features "compression" --release
|
|
21
|
+
- cargo test --test interpolated_path --features "interpolate-folder-path"
|
|
22
|
+
- cargo test --test interpolated_path --features "interpolate-folder-path" --release
|
|
23
|
+
- cargo build --example basic
|
|
24
|
+
- cargo build --example basic --release
|
|
25
|
+
- cargo build --example actix --features actix
|
|
26
|
+
- cargo build --example actix --features actix --release
|
|
27
|
+
- cargo build --example warp --features warp-ex
|
|
28
|
+
- cargo build --example warp --features warp-ex --release
|
.travis.yml
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
language: rust
|
|
2
|
-
rust:
|
|
3
|
-
- stable
|
|
4
|
-
- nightly
|
|
5
|
-
|
|
6
|
-
cache:
|
|
7
|
-
cargo: true
|
|
8
|
-
|
|
9
|
-
matrix:
|
|
10
|
-
allow_failures:
|
|
11
|
-
- rust: nightly
|
|
12
|
-
|
|
13
|
-
script:
|
|
14
|
-
- cargo test --test lib
|
|
15
|
-
- cargo test --test lib --features "debug-embed"
|
|
16
|
-
- cargo test --test lib --release
|
|
17
|
-
- cargo test --test lib --features "compression" --release
|
|
18
|
-
- cargo test --test interpolated_path --features "interpolate-folder-path"
|
|
19
|
-
- cargo test --test interpolated_path --features "interpolate-folder-path" --release
|
|
20
|
-
- cargo build --example basic
|
|
21
|
-
- cargo build --example basic --release
|
|
22
|
-
- cargo build --example actix --features actix
|
|
23
|
-
- cargo build --example actix --features actix --release
|
|
24
|
-
- cargo build --example warp --features warp-ex
|
|
25
|
-
- cargo build --example warp --features warp-ex --release
|
appveyor.yml
DELETED
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
# Appveyor configuration template for Rust using rustup for Rust installation
|
|
2
|
-
# https://github.com/starkat99/appveyor-rust
|
|
3
|
-
|
|
4
|
-
## Operating System (VM environment) ##
|
|
5
|
-
|
|
6
|
-
# Rust needs at least Visual Studio 2013 Appveyor OS for MSVC targets.
|
|
7
|
-
os: Visual Studio 2015
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
# before repo cloning
|
|
11
|
-
init:
|
|
12
|
-
- git config --global core.symlinks true
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
## Build Matrix ##
|
|
16
|
-
|
|
17
|
-
# This configuration will setup a build for each channel & target combination (12 windows
|
|
18
|
-
# combinations in all).
|
|
19
|
-
#
|
|
20
|
-
# There are 3 channels: stable, beta, and nightly.
|
|
21
|
-
#
|
|
22
|
-
# Alternatively, the full version may be specified for the channel to build using that specific
|
|
23
|
-
# version (e.g. channel: 1.5.0)
|
|
24
|
-
#
|
|
25
|
-
# The values for target are the set of windows Rust build targets. Each value is of the form
|
|
26
|
-
#
|
|
27
|
-
# ARCH-pc-windows-TOOLCHAIN
|
|
28
|
-
#
|
|
29
|
-
# Where ARCH is the target architecture, either x86_64 or i686, and TOOLCHAIN is the linker
|
|
30
|
-
# toolchain to use, either msvc or gnu. See https://www.rust-lang.org/downloads.html#win-foot for
|
|
31
|
-
# a description of the toolchain differences.
|
|
32
|
-
# See https://github.com/rust-lang-nursery/rustup.rs/#toolchain-specification for description of
|
|
33
|
-
# toolchains and host triples.
|
|
34
|
-
#
|
|
35
|
-
# Comment out channel/target combos you do not wish to build in CI.
|
|
36
|
-
#
|
|
37
|
-
# You may use the `cargoflags` and `RUSTFLAGS` variables to set additional flags for cargo commands
|
|
38
|
-
# and rustc, respectively. For instance, you can uncomment the cargoflags lines in the nightly
|
|
39
|
-
# channels to enable unstable features when building for nightly. Or you could add additional
|
|
40
|
-
# matrix entries to test different combinations of features.
|
|
41
|
-
environment:
|
|
42
|
-
matrix:
|
|
43
|
-
|
|
44
|
-
### MSVC Toolchains ###
|
|
45
|
-
|
|
46
|
-
# Stable 64-bit MSVC
|
|
47
|
-
- channel: stable
|
|
48
|
-
target: x86_64-pc-windows-msvc
|
|
49
|
-
# # Stable 32-bit MSVC
|
|
50
|
-
# - channel: stable
|
|
51
|
-
# target: i686-pc-windows-msvc
|
|
52
|
-
# # Beta 64-bit MSVC
|
|
53
|
-
# - channel: beta
|
|
54
|
-
# target: x86_64-pc-windows-msvc
|
|
55
|
-
# # Beta 32-bit MSVC
|
|
56
|
-
# - channel: beta
|
|
57
|
-
# target: i686-pc-windows-msvc
|
|
58
|
-
# # Nightly 64-bit MSVC
|
|
59
|
-
# - channel: nightly
|
|
60
|
-
# target: x86_64-pc-windows-msvc
|
|
61
|
-
# # Nightly 32-bit MSVC
|
|
62
|
-
# - channel: nightly
|
|
63
|
-
# target: i686-pc-windows-msvc
|
|
64
|
-
|
|
65
|
-
### GNU Toolchains ###
|
|
66
|
-
|
|
67
|
-
# Stable 64-bit GNU
|
|
68
|
-
- channel: stable
|
|
69
|
-
target: x86_64-pc-windows-gnu
|
|
70
|
-
MSYS_BITS: 64
|
|
71
|
-
# # Stable 32-bit GNU
|
|
72
|
-
# - channel: stable
|
|
73
|
-
# target: i686-pc-windows-gnu
|
|
74
|
-
# MSYS_BITS: 32
|
|
75
|
-
# # Beta 64-bit GNU
|
|
76
|
-
# - channel: beta
|
|
77
|
-
# target: x86_64-pc-windows-gnu
|
|
78
|
-
# MSYS_BITS: 64
|
|
79
|
-
# # Beta 32-bit GNU
|
|
80
|
-
# - channel: beta
|
|
81
|
-
# target: i686-pc-windows-gnu
|
|
82
|
-
# MSYS_BITS: 32
|
|
83
|
-
# # Nightly 64-bit GNU
|
|
84
|
-
# - channel: nightly
|
|
85
|
-
# target: x86_64-pc-windows-gnu
|
|
86
|
-
# MSYS_BITS: 64
|
|
87
|
-
# # Nightly 32-bit GNU
|
|
88
|
-
# - channel: nightly
|
|
89
|
-
# target: i686-pc-windows-gnu
|
|
90
|
-
# MSYS_BITS: 32
|
|
91
|
-
|
|
92
|
-
### Allowed failures ###
|
|
93
|
-
|
|
94
|
-
# See Appveyor documentation for specific details. In short, place any channel or targets you wish
|
|
95
|
-
# to allow build failures on (usually nightly at least is a wise choice). This will prevent a build
|
|
96
|
-
# or test failure in the matching channels/targets from failing the entire build.
|
|
97
|
-
matrix:
|
|
98
|
-
allow_failures:
|
|
99
|
-
- channel: nightly
|
|
100
|
-
|
|
101
|
-
# If you only care about stable channel build failures, uncomment the following line:
|
|
102
|
-
#- channel: beta
|
|
103
|
-
|
|
104
|
-
## Install Script ##
|
|
105
|
-
|
|
106
|
-
# This is the most important part of the Appveyor configuration. This installs the version of Rust
|
|
107
|
-
# specified by the 'channel' and 'target' environment variables from the build matrix. This uses
|
|
108
|
-
# rustup to install Rust.
|
|
109
|
-
#
|
|
110
|
-
# For simple configurations, instead of using the build matrix, you can simply set the
|
|
111
|
-
# default-toolchain and default-host manually here.
|
|
112
|
-
install:
|
|
113
|
-
- appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
|
|
114
|
-
- rustup-init -yv --default-toolchain %channel% --default-host %target%
|
|
115
|
-
- set PATH=%PATH%;%USERPROFILE%\.cargo\bin
|
|
116
|
-
- rustup install nightly
|
|
117
|
-
- rustup component add rustfmt-preview --toolchain nightly
|
|
118
|
-
- if defined MSYS_BITS set PATH=C:\msys64\mingw%MSYS_BITS%\bin;C:\msys64\usr\bin;%PATH%
|
|
119
|
-
- rustc -vV
|
|
120
|
-
- cargo -vV
|
|
121
|
-
|
|
122
|
-
## Build Script ##
|
|
123
|
-
|
|
124
|
-
# 'cargo test' takes care of building for us, so disable Appveyor's build stage. This prevents
|
|
125
|
-
# the "directory does not contain a project or solution file" error.
|
|
126
|
-
build: false
|
|
127
|
-
|
|
128
|
-
# Uses 'cargo test' to run tests and build. Alternatively, the project may call compiled programs
|
|
129
|
-
#directly or perform other testing commands. Rust will automatically be placed in the PATH
|
|
130
|
-
# environment variable.
|
|
131
|
-
test_script:
|
|
132
|
-
- cargo +nightly fmt --all -- --check
|
|
133
|
-
- cargo test --test lib
|
|
134
|
-
- cargo test --test lib --features "debug-embed"
|
|
135
|
-
- cargo test --test lib --release
|
|
136
|
-
- cargo test --test lib --features "compression" --release
|
|
137
|
-
- cargo test --test interpolated_path --features "interpolate-folder-path"
|
|
138
|
-
- cargo test --test interpolated_path --features "interpolate-folder-path" --release
|
|
139
|
-
- cargo build --example basic
|
|
140
|
-
- cargo build --example basic --release
|
|
141
|
-
- cargo build --example actix --features actix
|
|
142
|
-
- cargo build --example actix --features actix --release
|
changelog.md
CHANGED
|
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
7
7
|
|
|
8
8
|
Thanks to [Mcat12](https://github.com/Mcat12) for the changelog.
|
|
9
9
|
|
|
10
|
+
## [5.6.0] - 2020-07-13
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Fixed windows path error in release mode
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- Using github actions for CI now
|
|
19
|
+
|
|
10
20
|
## [5.5.1] - 2020-03-19
|
|
11
21
|
|
|
12
22
|
### Fixed
|
|
@@ -26,7 +36,7 @@ Thanks to [Mcat12](https://github.com/Mcat12) for the changelog.
|
|
|
26
36
|
|
|
27
37
|
- using rust-2018 edition now
|
|
28
38
|
- code cleanup
|
|
29
|
-
- updated examples and crates
|
|
39
|
+
- updated examples and crates
|
|
30
40
|
|
|
31
41
|
## [5.3.0] - 2020-02-15
|
|
32
42
|
|