Skip to content

Commit 11ea692

Browse files
authored
feat!: allow setting default environment variable values (#185)
* chore: update dependencies `time` has restricted the version of `serde` due to the addition of precompiled blobs in the crate uploaded to crates.io. See also serde-rs/serde#2538 * feat: add StringWithEnv type that expands variable values but stays a String * feat: set default environment variable values if variable is unset * fix: fix tests, add api docs * fix: replace unmaintained atty with standard library * chore: add deny, msrv to Makefile.toml * chore: allow clippy lint * style: run cargo fmt * chore: disable lint that is no longer stable * refactor: make EnvVarDefaults public * refactor!: remove Deref impl for PileName * chore: change checks used in check-all * ci: add msrv and deny checks to CI * chore: change TOML name from var_defaults to defaults * doc: update book with environment variable defaults support * chore: update sample config * ci: delete problematic lines * ci: fix job name * style: fix clippy warnings/suggestions * style: run cargo fmt * chore: update dependencies
1 parent b2c0cf7 commit 11ea692

23 files changed

Lines changed: 1055 additions & 421 deletions

File tree

.github/workflows/check.yml

Lines changed: 68 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ jobs:
1111
outputs:
1212
rust: ${{ steps.filter.outputs.rust }}
1313
cargo: ${{ steps.filter.outputs.cargo }}
14-
pytests: ${{ steps.filter.outputs.pytests }}}
1514
steps:
1615
- uses: actions/checkout@v3
1716
- uses: dorny/paths-filter@v2
@@ -39,6 +38,74 @@ jobs:
3938
# Push-only API key
4039
fossa-api-key: 7b6d2d5fb78bb718019e16184020ef6d
4140

41+
msrv:
42+
name: Cargo MSRV
43+
runs-on: ubuntu-latest
44+
steps:
45+
- name: Checkout repository
46+
uses: actions/checkout@v3
47+
48+
- name: Install stable toolchain
49+
uses: actions-rs/toolchain@v1
50+
with:
51+
toolchain: stable
52+
override: true
53+
components: clippy, rustfmt
54+
55+
- name: Install cargo-msrv
56+
uses: actions-rs/install@v0.1
57+
with:
58+
crate: cargo-msrv
59+
version: latest
60+
use-tool-cache: true
61+
62+
- name: Install cargo-make
63+
uses: actions-rs/install@v0.1
64+
with:
65+
crate: cargo-make
66+
version: latest
67+
use-tool-cache: true
68+
69+
- name: Cargo msrv
70+
uses: actions-rs/cargo@v1
71+
with:
72+
command: make
73+
args: msrv-verify
74+
75+
deny:
76+
name: Cargo deny
77+
runs-on: ubuntu-latest
78+
steps:
79+
- name: Checkout repository
80+
uses: actions/checkout@v3
81+
82+
- name: Install stable toolchain
83+
uses: actions-rs/toolchain@v1
84+
with:
85+
toolchain: stable
86+
override: true
87+
components: clippy, rustfmt
88+
89+
- name: Install cargo-deny
90+
uses: actions-rs/install@v0.1
91+
with:
92+
crate: cargo-deny
93+
version: latest
94+
use-tool-cache: true
95+
96+
- name: Install cargo-make
97+
uses: actions-rs/install@v0.1
98+
with:
99+
crate: cargo-make
100+
version: latest
101+
use-tool-cache: true
102+
103+
- name: Cargo deny
104+
uses: actions-rs/cargo@v1
105+
with:
106+
command: make
107+
args: deny
108+
42109
fmt:
43110
name: Cargo fmt
44111
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)