Skip to content

Commit e9de577

Browse files
committedMar 29, 2023
chore: Update from '_rust/main' template
2 parents e3499a7 + d1dd4ae commit e9de577

16 files changed

+327
-113
lines changed
 

‎.clippy.toml

+12-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,12 @@
1-
msrv = "1.64.0" # MSRV
1+
msrv = "1.65.0" # MSRV
2+
warn-on-all-wildcard-imports = true
3+
allow-expect-in-tests = true
4+
allow-unwrap-in-tests = true
5+
allow-dbg-in-tests = true
6+
allow-print-in-tests = true
7+
disallowed-methods = [
8+
{ path = "std::option::Option::map_or", reason = "use `map(..).unwrap_or(..)`" },
9+
{ path = "std::option::Option::map_or_else", reason = "use `map(..).unwrap_or_else(..)`" },
10+
{ path = "std::result::Result::map_or", reason = "use `map(..).unwrap_or(..)`" },
11+
{ path = "std::result::Result::map_or_else", reason = "use `map(..).unwrap_or_else(..)`" },
12+
]

‎.github/renovate.json5

+26
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,33 @@
44
],
55
"semanticCommits": "enabled",
66
"configMigration": true,
7+
"dependencyDashboard": true,
8+
"regexManagers": [
9+
{
10+
"fileMatch": [
11+
"^rust-toolchain\\.toml$",
12+
"Cargo.toml$",
13+
"clippy.toml$",
14+
"\.clippy.toml$",
15+
"^\.github/workflows/ci.yml$",
16+
"^\.github/workflows/rust-next.yml$",
17+
],
18+
"matchStrings": [
19+
"MSRV.*?(?<currentValue>\\d+\\.\\d+(\\.\\d+)?)",
20+
"(?<currentValue>\\d+\\.\\d+(\\.\\d+)?).*?MSRV",
21+
],
22+
"depNameTemplate": "rust",
23+
"packageNameTemplate": "rust-lang/rust",
24+
"datasourceTemplate": "github-releases",
25+
}
26+
],
727
"packageRules": [
28+
{
29+
"commitMessageTopic": "MSRV",
30+
"matchManagers": ["regex"],
31+
"matchPackageNames": ["rust"],
32+
"stabilityDays": 126, // 3 releases * 6 weeks per release * 7 days per week
33+
},
834
// Goals:
935
// - Keep version reqs low, ignoring compatible normal/build dependencies
1036
// - Take advantage of latest dev-dependencies

‎.github/settings.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# These settings are synced to GitHub by https://probot.github.io/apps/settings/
22

33
repository:
4-
description: Filesystem fixtures and assertions.
5-
homepage: docs.rs/assert_fs
6-
topics: rust fs test
4+
description: "Filesystem fixtures and assertions."
5+
homepage: "docs.rs/assert_fs"
6+
topics: "rust fs test"
77
has_issues: true
88
has_projects: false
99
has_wiki: false
@@ -21,19 +21,19 @@ labels:
2121
# Type
2222
- name: bug
2323
color: '#b60205'
24-
description: Not as expected
24+
description: "Not as expected"
2525
- name: enhancement
2626
color: '#1d76db'
27-
description: Improve the expected
27+
description: "Improve the expected"
2828
# Flavor
2929
- name: question
3030
color: "#cc317c"
31-
description: Uncertainty is involved
31+
description: "Uncertainty is involved"
3232
- name: breaking-change
3333
color: "#e99695"
3434
- name: good first issue
3535
color: '#c2e0c6'
36-
description: Help wanted!
36+
description: "Help wanted!"
3737

3838
branches:
3939
- name: master

‎.github/workflows/audit.yml

+33-5
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,49 @@
11
name: Security audit
2+
3+
permissions:
4+
contents: read
5+
26
on:
37
pull_request:
48
paths:
59
- '**/Cargo.toml'
610
- '**/Cargo.lock'
711
push:
8-
paths:
9-
- '**/Cargo.toml'
10-
- '**/Cargo.lock'
11-
schedule:
12-
- cron: '6 6 6 * *'
12+
branches:
13+
- master
14+
15+
env:
16+
RUST_BACKTRACE: 1
17+
CARGO_TERM_COLOR: always
18+
CLICOLOR: 1
19+
1320
jobs:
1421
security_audit:
22+
permissions:
23+
issues: write # to create issues (actions-rs/audit-check)
24+
checks: write # to create check (actions-rs/audit-check)
1525
runs-on: ubuntu-latest
26+
# Prevent sudden announcement of a new advisory from failing ci:
27+
continue-on-error: true
1628
steps:
1729
- name: Checkout repository
1830
uses: actions/checkout@v3
1931
- uses: actions-rs/audit-check@v1
2032
with:
2133
token: ${{ secrets.GITHUB_TOKEN }}
34+
35+
cargo_deny:
36+
permissions:
37+
issues: write # to create issues (actions-rs/audit-check)
38+
checks: write # to create check (actions-rs/audit-check)
39+
runs-on: ubuntu-latest
40+
strategy:
41+
matrix:
42+
checks:
43+
- bans licenses sources
44+
steps:
45+
- uses: actions/checkout@v3
46+
- uses: EmbarkStudios/cargo-deny-action@v1
47+
with:
48+
command: check ${{ matrix.checks }}
49+
rust-version: stable

‎.github/workflows/ci.yml

+37-33
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
name: CI
2+
3+
permissions:
4+
contents: read
5+
26
on:
37
pull_request:
4-
paths:
5-
- '**'
6-
- '!/*.md'
7-
- '!/docs/**'
8-
- "!/LICENSE-*"
98
push:
109
branches:
1110
- master
12-
paths:
13-
- '**'
14-
- '!/*.md'
15-
- '!/docs/**'
16-
- "!/LICENSE-*"
17-
schedule:
18-
- cron: '13 13 13 * *'
11+
12+
env:
13+
RUST_BACKTRACE: 1
14+
CARGO_TERM_COLOR: always
15+
CLICOLOR: 1
16+
1917
jobs:
2018
ci:
19+
permissions:
20+
contents: none
2121
name: CI
2222
needs: [test, msrv, docs, rustfmt, clippy]
2323
runs-on: ubuntu-latest
@@ -36,11 +36,9 @@ jobs:
3636
- name: Checkout repository
3737
uses: actions/checkout@v3
3838
- name: Install Rust
39-
uses: actions-rs/toolchain@v1
39+
uses: dtolnay/rust-toolchain@stable
4040
with:
4141
toolchain: ${{ matrix.rust }}
42-
profile: minimal
43-
override: true
4442
- uses: Swatinem/rust-cache@v2
4543
- name: Build
4644
run: cargo test --no-run --workspace --all-features
@@ -51,17 +49,15 @@ jobs:
5149
- name: No-default features
5250
run: cargo test --workspace --no-default-features
5351
msrv:
54-
name: "Check MSRV: 1.64.0"
52+
name: "Check MSRV: 1.65.0"
5553
runs-on: ubuntu-latest
5654
steps:
5755
- name: Checkout repository
5856
uses: actions/checkout@v3
5957
- name: Install Rust
60-
uses: actions-rs/toolchain@v1
58+
uses: dtolnay/rust-toolchain@stable
6159
with:
62-
toolchain: 1.64.0 # MSRV
63-
profile: minimal
64-
override: true
60+
toolchain: 1.65.0 # MSRV
6561
- uses: Swatinem/rust-cache@v2
6662
- name: Default features
6763
run: cargo check --workspace --all-targets
@@ -76,11 +72,9 @@ jobs:
7672
- name: Checkout repository
7773
uses: actions/checkout@v3
7874
- name: Install Rust
79-
uses: actions-rs/toolchain@v1
75+
uses: dtolnay/rust-toolchain@stable
8076
with:
8177
toolchain: stable
82-
profile: minimal
83-
override: true
8478
- uses: Swatinem/rust-cache@v2
8579
- name: Check documentation
8680
env:
@@ -93,32 +87,42 @@ jobs:
9387
- name: Checkout repository
9488
uses: actions/checkout@v3
9589
- name: Install Rust
96-
uses: actions-rs/toolchain@v1
90+
uses: dtolnay/rust-toolchain@stable
9791
with:
9892
# Not MSRV because its harder to jump between versions and people are
9993
# more likely to have stable
10094
toolchain: stable
101-
profile: minimal
102-
override: true
10395
components: rustfmt
10496
- uses: Swatinem/rust-cache@v2
10597
- name: Check formatting
10698
run: cargo fmt --all -- --check
10799
clippy:
108100
name: clippy
109101
runs-on: ubuntu-latest
102+
permissions:
103+
security-events: write # to upload sarif results
110104
steps:
111105
- name: Checkout repository
112106
uses: actions/checkout@v3
113107
- name: Install Rust
114-
uses: actions-rs/toolchain@v1
108+
uses: dtolnay/rust-toolchain@stable
115109
with:
116-
toolchain: 1.64.0 # MSRV
117-
profile: minimal
118-
override: true
110+
toolchain: 1.65.0 # MSRV
119111
components: clippy
120112
- uses: Swatinem/rust-cache@v2
121-
- uses: actions-rs/clippy-check@v1
113+
- name: Install SARIF tools
114+
run: cargo install clippy-sarif --version 0.3.4 --locked # Held back due to msrv
115+
- name: Install SARIF tools
116+
run: cargo install sarif-fmt --version 0.3.4 --locked # Held back due to msrv
117+
- name: Check
118+
run: >
119+
cargo clippy --workspace --all-features --all-targets --message-format=json -- -D warnings --allow deprecated
120+
| clippy-sarif
121+
| tee clippy-results.sarif
122+
| sarif-fmt
123+
continue-on-error: true
124+
- name: Upload
125+
uses: github/codeql-action/upload-sarif@v2
122126
with:
123-
token: ${{ secrets.GITHUB_TOKEN }}
124-
args: --workspace --all-features --all-targets -- -D warnings --allow deprecated
127+
sarif_file: clippy-results.sarif
128+
wait-for-processing: true

‎.github/workflows/committed.yml

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
name: Lint Commits
44
on: [pull_request]
55

6+
permissions:
7+
contents: read
8+
9+
env:
10+
RUST_BACKTRACE: 1
11+
CARGO_TERM_COLOR: always
12+
CLICOLOR: 1
13+
614
jobs:
715
committed:
816
name: Lint Commits

‎.github/workflows/pre-commit.yml

+11
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
11
name: pre-commit
2+
3+
permissions: {} # none
4+
25
on:
36
pull_request:
47
push:
58
branches: [master]
9+
10+
env:
11+
RUST_BACKTRACE: 1
12+
CARGO_TERM_COLOR: always
13+
CLICOLOR: 1
14+
615
jobs:
716
pre-commit:
17+
permissions:
18+
contents: read
819
runs-on: ubuntu-latest
920
steps:
1021
- uses: actions/checkout@v3

‎.github/workflows/rust-next.yml

+11-49
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
name: rust-next
2+
3+
permissions:
4+
contents: read
5+
26
on:
37
schedule:
48
- cron: '6 6 6 * *'
9+
10+
env:
11+
RUST_BACKTRACE: 1
12+
CARGO_TERM_COLOR: always
13+
CLICOLOR: 1
14+
515
jobs:
616
test:
717
name: Test
@@ -18,61 +28,13 @@ jobs:
1828
- name: Checkout repository
1929
uses: actions/checkout@v3
2030
- name: Install Rust
21-
uses: actions-rs/toolchain@v1
31+
uses: dtolnay/rust-toolchain@stable
2232
with:
2333
toolchain: ${{ matrix.rust }}
24-
profile: minimal
25-
override: true
2634
- uses: Swatinem/rust-cache@v2
2735
- name: Default features
2836
run: cargo test --workspace
2937
- name: All features
3038
run: cargo test --workspace --all-features
3139
- name: No-default features
3240
run: cargo test --workspace --no-default-features
33-
rustfmt:
34-
name: rustfmt
35-
strategy:
36-
matrix:
37-
rust:
38-
- stable
39-
- beta
40-
continue-on-error: ${{ matrix.rust != 'stable' }}
41-
runs-on: ubuntu-latest
42-
steps:
43-
- name: Checkout repository
44-
uses: actions/checkout@v3
45-
- name: Install Rust
46-
uses: actions-rs/toolchain@v1
47-
with:
48-
toolchain: ${{ matrix.rust }}
49-
profile: minimal
50-
override: true
51-
components: rustfmt
52-
- uses: Swatinem/rust-cache@v2
53-
- name: Check formatting
54-
run: cargo fmt --all -- --check
55-
clippy:
56-
name: clippy
57-
strategy:
58-
matrix:
59-
rust:
60-
- 1.64.0 # MSRV
61-
- stable
62-
continue-on-error: ${{ matrix.rust != '1.64.0' }} # MSRV
63-
runs-on: ubuntu-latest
64-
steps:
65-
- name: Checkout repository
66-
uses: actions/checkout@v3
67-
- name: Install Rust
68-
uses: actions-rs/toolchain@v1
69-
with:
70-
toolchain: ${{ matrix.rust }}
71-
profile: minimal
72-
override: true
73-
components: clippy
74-
- uses: Swatinem/rust-cache@v2
75-
- uses: actions-rs/clippy-check@v1
76-
with:
77-
token: ${{ secrets.GITHUB_TOKEN }}
78-
args: --workspace --all-features --all-targets -- -D warnings

‎.github/workflows/spelling.yml

+9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
name: Spelling
2+
3+
permissions:
4+
contents: read
5+
26
on: [pull_request]
37

8+
env:
9+
RUST_BACKTRACE: 1
10+
CARGO_TERM_COLOR: always
11+
CLICOLOR: 1
12+
413
jobs:
514
spelling:
615
name: Spell Check with Typos

‎.pre-commit-config.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v2.3.0
3+
rev: v4.3.0
44
hooks:
55
- id: check-yaml
66
stages: [commit]
@@ -15,12 +15,12 @@ repos:
1515
- id: detect-private-key
1616
stages: [commit]
1717
- repo: https://github.com/crate-ci/typos
18-
rev: v1.4.1
18+
rev: v1.11.1
1919
hooks:
2020
- id: typos
2121
stages: [commit]
2222
- repo: https://github.com/crate-ci/committed
23-
rev: v1.0.1
23+
rev: v1.0.4
2424
hooks:
2525
- id: committed
2626
stages: [commit-msg]

‎CONTRIBUTING.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,21 @@ As a heads up, we'll be running your PR through the following gauntlet:
4949
- `clippy`
5050
- `rustdoc`
5151
- [`committed`](https://github.com/crate-ci/committed)
52+
- [`typos`](https://github.com/crate-ci/typos)
5253

5354
## Releasing
5455

5556
Pre-requisites
5657
- Running `cargo login`
5758
- A member of `rust-cli:Maintainers`
5859
- Push permission to the repo
60+
- [`cargo-release`](https://github.com/crate-ci/cargo-release/)
5961

6062
When we're ready to release, a project owner should do the following
61-
1. Update the changelog
63+
1. Update the changelog (see `cargo release changes` for ideas)
6264
2. Determine what the next version is, according to semver
6365
3. Run [`cargo release -x <level>`](https://github.com/crate-ci/cargo-release)
6466

6567
[issues]: https://github.com/assert-rs/assert_fs/issues
6668
[new issue]: https://github.com/assert-rs/assert_fs/issues/new
6769
[all issues]: https://github.com/assert-rs/assert_fs/issues?utf8=%E2%9C%93&q=is%3Aissue
68-
[travis]: https://github.com/assert-rs/assert_fs/blob/master/.travis.yml

‎Cargo.toml

+25-12
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
1-
[package]
2-
name = "assert_fs"
3-
version = "1.0.12"
4-
authors = ["Ed Page <eopage@gmail.com>"]
5-
description = "Filesystem fixtures and assertions for testing."
1+
[workspace]
2+
resolver = "2"
3+
4+
[workspace.package]
65
license = "MIT OR Apache-2.0"
7-
repository = "https://github.com/assert-rs/assert_fs.git"
8-
homepage = "https://github.com/assert-rs/assert_fs"
9-
documentation = "http://docs.rs/assert_fs/"
10-
readme = "README.md"
11-
categories = ["development-tools::testing"]
12-
keywords = ["filesystem", "test", "assert", "fixture"]
136
edition = "2021"
14-
rust-version = "1.64.0" # MSRV
7+
rust-version = "1.65.0" # MSRV
158
include = [
169
"build.rs",
1710
"src/**/*",
@@ -22,6 +15,26 @@ include = [
2215
"examples/**/*"
2316
]
2417

18+
[package]
19+
name = "assert_fs"
20+
version = "1.0.12"
21+
authors = ["Ed Page <eopage@gmail.com>"]
22+
description = "Filesystem fixtures and assertions for testing."
23+
repository = "https://github.com/assert-rs/assert_fs.git"
24+
homepage = "https://github.com/assert-rs/assert_fs"
25+
documentation = "http://docs.rs/assert_fs/"
26+
readme = "README.md"
27+
categories = ["development-tools::testing"]
28+
keywords = ["filesystem", "test", "assert", "fixture"]
29+
license.workspace = true
30+
edition.workspace = true
31+
rust-version.workspace = true
32+
include.workspace = true
33+
34+
[package.metadata.docs.rs]
35+
all-features = true
36+
rustdoc-args = ["--cfg", "docsrs"]
37+
2538
[package.metadata.release]
2639
pre-release-replacements = [
2740
{file="CHANGELOG.md", search="Unreleased", replace="{{version}}", min=1},

‎LICENSE-MIT

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2018 The assert_fs contributors
1+
Copyright (c) Individual contributors
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

‎deny.toml

+139
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
# Note that all fields that take a lint level have these possible values:
2+
# * deny - An error will be produced and the check will fail
3+
# * warn - A warning will be produced, but the check will not fail
4+
# * allow - No warning or error will be produced, though in some cases a note
5+
# will be
6+
7+
# This section is considered when running `cargo deny check advisories`
8+
# More documentation for the advisories section can be found here:
9+
# https://embarkstudios.github.io/cargo-deny/checks/advisories/cfg.html
10+
[advisories]
11+
# The lint level for security vulnerabilities
12+
vulnerability = "deny"
13+
# The lint level for unmaintained crates
14+
unmaintained = "warn"
15+
# The lint level for crates that have been yanked from their source registry
16+
yanked = "warn"
17+
# The lint level for crates with security notices. Note that as of
18+
# 2019-12-17 there are no security notice advisories in
19+
# https://github.com/rustsec/advisory-db
20+
notice = "warn"
21+
# A list of advisory IDs to ignore. Note that ignored advisories will still
22+
# output a note when they are encountered.
23+
#
24+
# e.g. "RUSTSEC-0000-0000",
25+
ignore = [
26+
]
27+
28+
# This section is considered when running `cargo deny check licenses`
29+
# More documentation for the licenses section can be found here:
30+
# https://embarkstudios.github.io/cargo-deny/checks/licenses/cfg.html
31+
[licenses]
32+
unlicensed = "deny"
33+
# List of explicitly allowed licenses
34+
# See https://spdx.org/licenses/ for list of possible licenses
35+
# [possible values: any SPDX 3.11 short identifier (+ optional exception)].
36+
allow = [
37+
"MIT",
38+
"MIT-0",
39+
"Apache-2.0",
40+
"BSD-3-Clause",
41+
"MPL-2.0",
42+
"Unicode-DFS-2016",
43+
"CC0-1.0",
44+
]
45+
# List of explicitly disallowed licenses
46+
# See https://spdx.org/licenses/ for list of possible licenses
47+
# [possible values: any SPDX 3.11 short identifier (+ optional exception)].
48+
deny = [
49+
]
50+
# Lint level for licenses considered copyleft
51+
copyleft = "deny"
52+
# Blanket approval or denial for OSI-approved or FSF Free/Libre licenses
53+
# * both - The license will be approved if it is both OSI-approved *AND* FSF
54+
# * either - The license will be approved if it is either OSI-approved *OR* FSF
55+
# * osi-only - The license will be approved if is OSI-approved *AND NOT* FSF
56+
# * fsf-only - The license will be approved if is FSF *AND NOT* OSI-approved
57+
# * neither - This predicate is ignored and the default lint level is used
58+
allow-osi-fsf-free = "neither"
59+
# Lint level used when no other predicates are matched
60+
# 1. License isn't in the allow or deny lists
61+
# 2. License isn't copyleft
62+
# 3. License isn't OSI/FSF, or allow-osi-fsf-free = "neither"
63+
default = "deny"
64+
# The confidence threshold for detecting a license from license text.
65+
# The higher the value, the more closely the license text must be to the
66+
# canonical license text of a valid SPDX license file.
67+
# [possible values: any between 0.0 and 1.0].
68+
confidence-threshold = 0.8
69+
# Allow 1 or more licenses on a per-crate basis, so that particular licenses
70+
# aren't accepted for every possible crate as with the normal allow list
71+
exceptions = [
72+
# Each entry is the crate and version constraint, and its specific allow
73+
# list
74+
#{ allow = ["Zlib"], name = "adler32", version = "*" },
75+
]
76+
77+
[licenses.private]
78+
# If true, ignores workspace crates that aren't published, or are only
79+
# published to private registries.
80+
# To see how to mark a crate as unpublished (to the official registry),
81+
# visit https://doc.rust-lang.org/cargo/reference/manifest.html#the-publish-field.
82+
ignore = true
83+
84+
# This section is considered when running `cargo deny check bans`.
85+
# More documentation about the 'bans' section can be found here:
86+
# https://embarkstudios.github.io/cargo-deny/checks/bans/cfg.html
87+
[bans]
88+
# Lint level for when multiple versions of the same crate are detected
89+
multiple-versions = "warn"
90+
# Lint level for when a crate version requirement is `*`
91+
wildcards = "deny"
92+
# The graph highlighting used when creating dotgraphs for crates
93+
# with multiple versions
94+
# * lowest-version - The path to the lowest versioned duplicate is highlighted
95+
# * simplest-path - The path to the version with the fewest edges is highlighted
96+
# * all - Both lowest-version and simplest-path are used
97+
highlight = "all"
98+
# The default lint level for `default` features for crates that are members of
99+
# the workspace that is being checked. This can be overridden by allowing/denying
100+
# `default` on a crate-by-crate basis if desired.
101+
workspace-default-features = "allow"
102+
# The default lint level for `default` features for external crates that are not
103+
# members of the workspace. This can be overridden by allowing/denying `default`
104+
# on a crate-by-crate basis if desired.
105+
external-default-features = "allow"
106+
# List of crates that are allowed. Use with care!
107+
allow = [
108+
#{ name = "ansi_term", version = "=0.11.0" },
109+
]
110+
# List of crates to deny
111+
deny = [
112+
# Each entry the name of a crate and a version range. If version is
113+
# not specified, all versions will be matched.
114+
#{ name = "ansi_term", version = "=0.11.0" },
115+
#
116+
# Wrapper crates can optionally be specified to allow the crate when it
117+
# is a direct dependency of the otherwise banned crate
118+
#{ name = "ansi_term", version = "=0.11.0", wrappers = [] },
119+
]
120+
121+
# This section is considered when running `cargo deny check sources`.
122+
# More documentation about the 'sources' section can be found here:
123+
# https://embarkstudios.github.io/cargo-deny/checks/sources/cfg.html
124+
[sources]
125+
# Lint level for what to happen when a crate from a crate registry that is not
126+
# in the allow list is encountered
127+
unknown-registry = "deny"
128+
# Lint level for what to happen when a crate from a git repository that is not
129+
# in the allow list is encountered
130+
unknown-git = "deny"
131+
# List of URLs for allowed crate registries. Defaults to the crates.io index
132+
# if not specified. If it is specified but empty, no registries are allowed.
133+
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
134+
# List of URLs for allowed Git repositories
135+
allow-git = []
136+
137+
[sources.allow-org]
138+
# 1 or more github.com organizations to allow git sources for
139+
github = []

‎release.toml

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
dependent-version = "fix"
12
allow-branch = ["master"]

‎src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
//! [dir-diff]: https://crates.io/crates/dir-diff
5252
5353
#![warn(missing_docs)]
54+
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
5455

5556
pub mod assert;
5657
pub mod fixture;

0 commit comments

Comments
 (0)
Please sign in to comment.