From ea0c65cce211bf3f4608604c8e04a37390667726 Mon Sep 17 00:00:00 2001 From: Jan Bronicki Date: Sun, 4 Sep 2022 00:47:22 +0200 Subject: [PATCH 01/29] rarararaaaa gagaga gagagagaaaa --- .github/workflows/build.yml | 16 ++++++++++------ .github/workflows/docs.yml | 6 +++--- .github/workflows/format.yml | 19 +++++++++++++++++++ .github/workflows/{rust.yml => lint.yml} | 13 ++++++------- .github/workflows/package.yml | 20 ++++++-------------- .github/workflows/tests.yml | 6 +++--- 6 files changed, 47 insertions(+), 33 deletions(-) create mode 100644 .github/workflows/format.yml rename .github/workflows/{rust.yml => lint.yml} (56%) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7d669b8..d7f172c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Build +name: 🔨 Build on: pull_request: @@ -10,17 +10,21 @@ env: jobs: build: - name: 🔨Build release - runs-on: ubuntu-latest + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + name: 🔨 Build release + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 - - name: 🔨Build release + - name: Build release run: cargo build --release package: - name: 📦Check package generation + name: 📦 Check package generation runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: 📦Check package generation + - name: Check package generation run: cargo package + diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index e5a7e1e..465b19b 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,4 +1,4 @@ -name: Docs +name: 📄 Build docs on: pull_request: @@ -10,9 +10,9 @@ env: jobs: docs: - name: 📄Build docs + name: 📄 Build docs runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: 📄Build docs + - name: Build docs run: cargo doc --verbose diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml new file mode 100644 index 0000000..412f790 --- /dev/null +++ b/.github/workflows/format.yml @@ -0,0 +1,19 @@ +name: 👔 Check formatting + +on: + pull_request: + push: + branches: ["main", "develop", "release"] + +env: + CARGO_TERM_COLOR: always + +jobs: + check_format: + name: 👔 Check formatting + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Check Formatting + run: cargo fmt -- --verbose --check --color auto + diff --git a/.github/workflows/rust.yml b/.github/workflows/lint.yml similarity index 56% rename from .github/workflows/rust.yml rename to .github/workflows/lint.yml index fc85b76..37b4a60 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/lint.yml @@ -1,4 +1,5 @@ -name: Code check + +name: 🖋 Check lintig on: pull_request: @@ -9,15 +10,13 @@ env: CARGO_TERM_COLOR: always jobs: - code_check: - name: 👔✒️Formatting and Linting + check_lint: + name: 🖋 Check linting runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: 👔Check Formatting - run: cargo fmt -- --verbose --check --color auto - - name: ✒️Check linting + - name: Check linting run: | rustup component add clippy set env RUSTFLAGS="-Dwarnings" cargo clippy --workspace -- -D warnings + diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index b3e87cf..0108c66 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -1,4 +1,4 @@ -name: Package +name: 📦 Package on: pull_request: @@ -19,28 +19,20 @@ jobs: # cargo install cargo-deny # cargo deny check - package: - name: 🔨Package - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: 🔨Check package build - run: cargo package --verbose - cargo_check: - name: 📦Check package integrity + name: 📦 Check package integrity runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: 📦Check package integrity - run: cargo check --verbose + - name: Check package integrity + run: cargo package --verbose publish_dry_run: - name: 📢Publish dry-run + name: 📢 Publish dry-run runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: 📢Publish dry run + - name: Publish dry run run: cargo publish --dry-run --verbose # dummy_publish: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2a8b10e..2239254 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,4 +1,4 @@ -name: Tests +name: 🧪 Tests on: pull_request: @@ -10,9 +10,9 @@ env: jobs: test: - name: 🧪Run tests + name: 🧪 Run tests runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: 🧪Run tests + - name: Run tests run: cargo test --verbose From b23833ca0dd3ad476ed7f784db23ebb60812f40d Mon Sep 17 00:00:00 2001 From: Jan Bronicki Date: Sun, 4 Sep 2022 00:59:15 +0200 Subject: [PATCH 02/29] asd --- .github/workflows/lint.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 37b4a60..9f2932a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,6 +14,7 @@ jobs: name: 🖋 Check linting runs-on: ubuntu-latest steps: + - uses: actions/checkout@v2 - name: Check linting run: | rustup component add clippy From 1763f06e8ec2f1ed858eb9ab463b859cec0d6e20 Mon Sep 17 00:00:00 2001 From: Jan Bronicki Date: Sun, 4 Sep 2022 01:17:14 +0200 Subject: [PATCH 03/29] asdfsdf --- .github/workflows/tests.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2239254..4e69f26 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,6 +10,11 @@ env: jobs: test: + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + name: 🔨 Build release + runs-on: ${{ matrix.os }} name: 🧪 Run tests runs-on: ubuntu-latest steps: From 2c46cad47c3ce81c6a95b5990925c99fd0a29188 Mon Sep 17 00:00:00 2001 From: Jan Bronicki Date: Sun, 4 Sep 2022 01:18:19 +0200 Subject: [PATCH 04/29] asdfasefsadfasef --- .github/workflows/tests.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4e69f26..039c2d5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,10 +13,8 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] - name: 🔨 Build release - runs-on: ${{ matrix.os }} name: 🧪 Run tests - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 - name: Run tests From a8f0a29505ace32390fd43f9dd9baadb250e20d8 Mon Sep 17 00:00:00 2001 From: Jan Bronicki Date: Sun, 4 Sep 2022 01:20:10 +0200 Subject: [PATCH 05/29] asdfasdf --- .github/workflows/build.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d7f172c..07adb03 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,6 +17,15 @@ jobs: runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 + - uses: actions/cache@v3 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - name: Build release run: cargo build --release From e813f8d9a4181d5ed1314c30d5213a29f4c287f9 Mon Sep 17 00:00:00 2001 From: Jan Bronicki Date: Sun, 4 Sep 2022 01:45:02 +0200 Subject: [PATCH 06/29] kerbkjaerbkjre --- .github/workflows/build.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 07adb03..6273c5d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,10 +13,15 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] + toolchain: [stable, beta, nightly] name: 🔨 Build release runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 + - name: Install latest ${{ matrix.toolchain }} + uses: actions-rs/toolchain@v1 + with: + toolchain: ${{ matrix.toolchain }} - uses: actions/cache@v3 with: path: | From b2917eb47547faeeb98c34895a9d6721e42b4875 Mon Sep 17 00:00:00 2001 From: Jan Bronicki Date: Sun, 4 Sep 2022 01:51:05 +0200 Subject: [PATCH 07/29] kefrbhjarjbh --- .github/workflows/tests.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 039c2d5..90c4866 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,9 +13,16 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] + toolchain: [stable, beta, nightly] name: 🧪 Run tests runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 + - name: Install latest ${{ matrix.toolchain }} + uses: actions-rs/toolchain@v1 + with: + toolchain: ${{ matrix.toolchain }} + - uses: actions/checkout@v2 - name: Run tests run: cargo test --verbose + From 3c69406ffce68a2fc6f34439a82346f162362fd2 Mon Sep 17 00:00:00 2001 From: Jan Bronicki Date: Sun, 4 Sep 2022 01:54:27 +0200 Subject: [PATCH 08/29] hjklsdfhjklsdgflkjh --- .github/workflows/build.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6273c5d..2331ff6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,11 +34,3 @@ jobs: - name: Build release run: cargo build --release - package: - name: 📦 Check package generation - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Check package generation - run: cargo package - From 6c53db743fb9554dfebe175aa9318f0515a211a5 Mon Sep 17 00:00:00 2001 From: Jan Bronicki Date: Tue, 6 Sep 2022 01:03:02 +0200 Subject: [PATCH 09/29] adrg --- .github/workflows/format.yml | 30 +++++++++++++++++-- .github/workflows/lint.yml | 7 ++++- .rustfmt.toml | 1 - LICENSE | 1 - Makefile.toml | 12 +++++++- deny.yml => deny.toml | 56 +++++++++++++++++------------------- 6 files changed, 71 insertions(+), 36 deletions(-) rename deny.yml => deny.toml (84%) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 412f790..7779e9f 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -14,6 +14,32 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + - uses: davidB/rust-cargo-make@v1 - name: Check Formatting - run: cargo fmt -- --verbose --check --color auto - + run: cargo make rust-fmt-check + check_format_markdown: + name: 🖋 Check markdown files + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v2 + - name: Markdown Linting Action + uses: avto-dev/markdown-lint@v1.5.0 + with: + args: "*.md" + check_format_toml: + name: 🪦 Check markdown files + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + - uses: davidB/rust-cargo-make@v1 + - run: cargo make toml-fmt-check \ No newline at end of file diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9f2932a..4bc41d4 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,5 +1,5 @@ -name: 🖋 Check lintig +name: 🖋 Check linting on: pull_request: @@ -15,6 +15,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + - uses: davidB/rust-cargo-make@v1 - name: Check linting run: | rustup component add clippy diff --git a/.rustfmt.toml b/.rustfmt.toml index 88bb35b..1460aaa 100644 --- a/.rustfmt.toml +++ b/.rustfmt.toml @@ -1,2 +1 @@ max_width = 88 -ignore = ["."] # rustfmt does a poor job, and I don't want it ruining well-formatted code diff --git a/LICENSE b/LICENSE index dda2da5..94db588 100644 --- a/LICENSE +++ b/LICENSE @@ -19,4 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - diff --git a/Makefile.toml b/Makefile.toml index dad9e9a..1beffd0 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -6,6 +6,16 @@ install_crate = "rustfmt" command = "cargo" args = ["fmt", "--", "--emit=files"] +[tasks.rust-fmt-check] +install_crate = "rustfmt" +command = "cargo" +args = ["fmt", "--", "--verbose", "--color", "auto"] + +[tasks.toml-fmt-check] +install_crate = "taplo-cli" +command = "taplo" +args = ["fmt", "--check", "*.toml"] + [tasks.clean] command = "cargo" args = ["clean"] @@ -28,4 +38,4 @@ dependencies = ["clean"] [tasks.doc] command = "cargo" args = ["doc"] -dependencies = ["clean"] \ No newline at end of file +dependencies = ["clean"] diff --git a/deny.yml b/deny.toml similarity index 84% rename from deny.yml rename to deny.toml index dd4e69c..9f82215 100644 --- a/deny.yml +++ b/deny.toml @@ -18,13 +18,13 @@ # dependencies not shared by any other crates, would be ignored, as the target # list here is effectively saying which targets you are building for. targets = [ - # The triple can be any string, but only the target triples built in to - # rustc (as of 1.40) can be checked against actual config expressions - #{ triple = "x86_64-unknown-linux-musl" }, - # You can also specify which target_features you promise are enabled for a - # particular target. target_features are currently not validated against - # the actual valid features supported by the target architecture. - #{ triple = "wasm32-unknown-unknown", features = ["atomics"] }, + # The triple can be any string, but only the target triples built in to + # rustc (as of 1.40) can be checked against actual config expressions + #{ triple = "x86_64-unknown-linux-musl" }, + # You can also specify which target_features you promise are enabled for a + # particular target. target_features are currently not validated against + # the actual valid features supported by the target architecture. + #{ triple = "wasm32-unknown-unknown", features = ["atomics"] }, ] # This section is considered when running `cargo deny check advisories` @@ -48,7 +48,7 @@ notice = "warn" # A list of advisory IDs to ignore. Note that ignored advisories will still # output a note when they are encountered. ignore = [ - #"RUSTSEC-0000-0000", + #"RUSTSEC-0000-0000", ] # Threshold for security vulnerabilities, any vulnerability with a CVSS score # lower than the range specified will be ignored. Note that ignored advisories @@ -69,16 +69,12 @@ unlicensed = "warn" # List of explicitly allowed licenses # See https://spdx.org/licenses/ for list of possible licenses # [possible values: any SPDX 3.11 short identifier (+ optional exception)]. -allow = [ - "MIT", - "Apache-2.0", - "Apache-2.0 WITH LLVM-exception", -] +allow = ["MIT", "Apache-2.0", "Apache-2.0 WITH LLVM-exception"] # List of explicitly disallowed licenses # See https://spdx.org/licenses/ for list of possible licenses # [possible values: any SPDX 3.11 short identifier (+ optional exception)]. deny = [ - #"Nokia", + #"Nokia", ] # Lint level for licenses considered copyleft copyleft = "warn" @@ -102,9 +98,9 @@ confidence-threshold = 0.8 # Allow 1 or more licenses on a per-crate basis, so that particular licenses # aren't accepted for every possible crate as with the normal allow list exceptions = [ - # Each entry is the crate and version constraint, and its specific allow - # list - #{ allow = ["Zlib"], name = "adler32", version = "*" }, + # Each entry is the crate and version constraint, and its specific allow + # list + #{ allow = ["Zlib"], name = "adler32", version = "*" }, ] # Some crates don't have (easily) machine readable licensing information, @@ -123,8 +119,8 @@ exceptions = [ # and the crate will be checked normally, which may produce warnings or errors # depending on the rest of your configuration #license-files = [ - # Each entry is a crate relative path, and the (opaque) hash of its contents - #{ path = "LICENSE", hash = 0xbd0eed23 } +# Each entry is a crate relative path, and the (opaque) hash of its contents +#{ path = "LICENSE", hash = 0xbd0eed23 } #] [licenses.private] @@ -137,7 +133,7 @@ ignore = false # is only published to private registries, and ignore is true, the crate will # not have its license(s) checked registries = [ - #"https://sekretz.com/registry + #"https://sekretz.com/registry ] # This section is considered when running `cargo deny check bans`. @@ -156,28 +152,28 @@ wildcards = "allow" highlight = "all" # List of crates that are allowed. Use with care! allow = [ - #{ name = "ansi_term", version = "=0.11.0" }, + #{ name = "ansi_term", version = "=0.11.0" }, ] # List of crates to deny deny = [ - # Each entry the name of a crate and a version range. If version is - # not specified, all versions will be matched. - #{ name = "ansi_term", version = "=0.11.0" }, - # - # Wrapper crates can optionally be specified to allow the crate when it - # is a direct dependency of the otherwise banned crate - #{ name = "ansi_term", version = "=0.11.0", wrappers = [] }, + # Each entry the name of a crate and a version range. If version is + # not specified, all versions will be matched. + #{ name = "ansi_term", version = "=0.11.0" }, + # + # Wrapper crates can optionally be specified to allow the crate when it + # is a direct dependency of the otherwise banned crate + #{ name = "ansi_term", version = "=0.11.0", wrappers = [] }, ] # Certain crates/versions that will be skipped when doing duplicate detection. skip = [ - #{ name = "ansi_term", version = "=0.11.0" }, + #{ name = "ansi_term", version = "=0.11.0" }, ] # Similarly to `skip` allows you to skip certain crates during duplicate # detection. Unlike skip, it also includes the entire tree of transitive # dependencies starting at the specified crate, up to a certain depth, which is # by default infinite skip-tree = [ - #{ name = "ansi_term", version = "=0.11.0", depth = 20 }, + #{ name = "ansi_term", version = "=0.11.0", depth = 20 }, ] # This section is considered when running `cargo deny check sources`. From 655baf3e700e50861d37630c33d1ee00312d51c3 Mon Sep 17 00:00:00 2001 From: Jan Bronicki Date: Tue, 6 Sep 2022 01:35:45 +0200 Subject: [PATCH 10/29] asdfasdf --- .github/issue_template.md | 9 +++++++++ .github/pull_request_template.md | 12 ++++++++++++ Makefile.toml | 2 +- 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .github/issue_template.md create mode 100644 .github/pull_request_template.md diff --git a/.github/issue_template.md b/.github/issue_template.md new file mode 100644 index 0000000..df84854 --- /dev/null +++ b/.github/issue_template.md @@ -0,0 +1,9 @@ +### Description + + + + +### Checklist + +* [ ] Connect all related issues, and project boards, add labels, assign people, milestones etc. +* [ ] Make sure that this template is properly filled in and appropriate parts deleted diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..6e33670 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,12 @@ +### Description + + + + +### Checklist + + +* [ ] Add tests, documentation, update the changelog, etc. +* [ ] Connect all issues, and project boards, add labels, assign people to the PR and the issue, etc. +* [ ] Make sure that the PR description and title contain "Draft: " at the beginning if its not yet ready +* [ ] Make sure that this template is properly filled in and appropriate parts deleted diff --git a/Makefile.toml b/Makefile.toml index 1beffd0..4f861ae 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -12,7 +12,7 @@ command = "cargo" args = ["fmt", "--", "--verbose", "--color", "auto"] [tasks.toml-fmt-check] -install_crate = "taplo-cli" +install_crate = { crate_name = "taplo-cli", binary = "taplo", test_arg = "--help" } command = "taplo" args = ["fmt", "--check", "*.toml"] From c40da52314f0464efe19d54dcd78782bcc80897c Mon Sep 17 00:00:00 2001 From: Jan Bronicki Date: Tue, 6 Sep 2022 01:41:54 +0200 Subject: [PATCH 11/29] jyhgftdres --- .github/workflows/format.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 7779e9f..70819a6 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -32,7 +32,7 @@ jobs: with: args: "*.md" check_format_toml: - name: 🪦 Check markdown files + name: 🪦 Check toml files runs-on: ubuntu-latest steps: - name: Check out code From 980a4ed8a7e76668e379a53e6d11fd58d0813ebd Mon Sep 17 00:00:00 2001 From: Jan Bronicki Date: Tue, 6 Sep 2022 01:46:08 +0200 Subject: [PATCH 12/29] sdfgsdfg --- .github/workflows/package.yml | 28 +++++++++------------------- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 0108c66..a222387 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -9,15 +9,15 @@ env: CARGO_TERM_COLOR: always jobs: - # license: - # name: 🏫License check - # runs-on: ubuntu-latest - # steps: - # - uses: actions/checkout@v2 - # - name: 🏫Check license - # run: | - # cargo install cargo-deny - # cargo deny check + license: + name: 🏫License check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: 🏫Check license + run: | + cargo install cargo-deny + cargo deny check cargo_check: name: 📦 Check package integrity @@ -34,13 +34,3 @@ jobs: - uses: actions/checkout@v2 - name: Publish dry run run: cargo publish --dry-run --verbose - - # dummy_publish: - # name: 📦⬆️📢Publish dummy - # # needs: [license, package, cargo_check, publish_dry_run] - # needs: [package, cargo_check, publish_dry_run] - # runs-on: ubuntu-latest - # steps: - # - uses: actions/checkout@v2 - # - name: 📦⬆️📢Publish dry run - # run: cargo publish --dry-run --verbose From 3e34f128de27d2dd0ac008054b5cc8424efdc7dc Mon Sep 17 00:00:00 2001 From: Jan Bronicki Date: Sun, 4 Sep 2022 00:47:22 +0200 Subject: [PATCH 13/29] rarararaaaa gagaga gagagagaaaa --- .github/workflows/build.yml | 16 ++++++++++------ .github/workflows/docs.yml | 6 +++--- .github/workflows/format.yml | 19 +++++++++++++++++++ .github/workflows/{rust.yml => lint.yml} | 13 ++++++------- .github/workflows/package.yml | 20 ++++++-------------- .github/workflows/tests.yml | 6 +++--- 6 files changed, 47 insertions(+), 33 deletions(-) create mode 100644 .github/workflows/format.yml rename .github/workflows/{rust.yml => lint.yml} (56%) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7d669b8..d7f172c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Build +name: 🔨 Build on: pull_request: @@ -10,17 +10,21 @@ env: jobs: build: - name: 🔨Build release - runs-on: ubuntu-latest + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + name: 🔨 Build release + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 - - name: 🔨Build release + - name: Build release run: cargo build --release package: - name: 📦Check package generation + name: 📦 Check package generation runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: 📦Check package generation + - name: Check package generation run: cargo package + diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index e5a7e1e..465b19b 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,4 +1,4 @@ -name: Docs +name: 📄 Build docs on: pull_request: @@ -10,9 +10,9 @@ env: jobs: docs: - name: 📄Build docs + name: 📄 Build docs runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: 📄Build docs + - name: Build docs run: cargo doc --verbose diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml new file mode 100644 index 0000000..412f790 --- /dev/null +++ b/.github/workflows/format.yml @@ -0,0 +1,19 @@ +name: 👔 Check formatting + +on: + pull_request: + push: + branches: ["main", "develop", "release"] + +env: + CARGO_TERM_COLOR: always + +jobs: + check_format: + name: 👔 Check formatting + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Check Formatting + run: cargo fmt -- --verbose --check --color auto + diff --git a/.github/workflows/rust.yml b/.github/workflows/lint.yml similarity index 56% rename from .github/workflows/rust.yml rename to .github/workflows/lint.yml index fc85b76..37b4a60 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/lint.yml @@ -1,4 +1,5 @@ -name: Code check + +name: 🖋 Check lintig on: pull_request: @@ -9,15 +10,13 @@ env: CARGO_TERM_COLOR: always jobs: - code_check: - name: 👔✒️Formatting and Linting + check_lint: + name: 🖋 Check linting runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: 👔Check Formatting - run: cargo fmt -- --verbose --check --color auto - - name: ✒️Check linting + - name: Check linting run: | rustup component add clippy set env RUSTFLAGS="-Dwarnings" cargo clippy --workspace -- -D warnings + diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index b3e87cf..0108c66 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -1,4 +1,4 @@ -name: Package +name: 📦 Package on: pull_request: @@ -19,28 +19,20 @@ jobs: # cargo install cargo-deny # cargo deny check - package: - name: 🔨Package - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: 🔨Check package build - run: cargo package --verbose - cargo_check: - name: 📦Check package integrity + name: 📦 Check package integrity runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: 📦Check package integrity - run: cargo check --verbose + - name: Check package integrity + run: cargo package --verbose publish_dry_run: - name: 📢Publish dry-run + name: 📢 Publish dry-run runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: 📢Publish dry run + - name: Publish dry run run: cargo publish --dry-run --verbose # dummy_publish: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2a8b10e..2239254 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,4 +1,4 @@ -name: Tests +name: 🧪 Tests on: pull_request: @@ -10,9 +10,9 @@ env: jobs: test: - name: 🧪Run tests + name: 🧪 Run tests runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: 🧪Run tests + - name: Run tests run: cargo test --verbose From 8f6b0ea9e2852c41fd4a6d44e7717807f53fd237 Mon Sep 17 00:00:00 2001 From: Jan Bronicki Date: Sun, 4 Sep 2022 00:59:15 +0200 Subject: [PATCH 14/29] asd --- .github/workflows/lint.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 37b4a60..9f2932a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,6 +14,7 @@ jobs: name: 🖋 Check linting runs-on: ubuntu-latest steps: + - uses: actions/checkout@v2 - name: Check linting run: | rustup component add clippy From db4c3e9e034dcf1012c92fe9294c93305bac64c7 Mon Sep 17 00:00:00 2001 From: Jan Bronicki Date: Sun, 4 Sep 2022 01:17:14 +0200 Subject: [PATCH 15/29] asdfsdf --- .github/workflows/tests.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2239254..4e69f26 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,6 +10,11 @@ env: jobs: test: + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + name: 🔨 Build release + runs-on: ${{ matrix.os }} name: 🧪 Run tests runs-on: ubuntu-latest steps: From 6b9889991ed01f598e28805bfd97f7c33f3c6e7d Mon Sep 17 00:00:00 2001 From: Jan Bronicki Date: Sun, 4 Sep 2022 01:18:19 +0200 Subject: [PATCH 16/29] asdfasefsadfasef --- .github/workflows/tests.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4e69f26..039c2d5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,10 +13,8 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] - name: 🔨 Build release - runs-on: ${{ matrix.os }} name: 🧪 Run tests - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 - name: Run tests From 798ceba429999d2420688ef8abf2bfb48a940e40 Mon Sep 17 00:00:00 2001 From: Jan Bronicki Date: Sun, 4 Sep 2022 01:20:10 +0200 Subject: [PATCH 17/29] asdfasdf --- .github/workflows/build.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d7f172c..07adb03 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,6 +17,15 @@ jobs: runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 + - uses: actions/cache@v3 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - name: Build release run: cargo build --release From 69deb0c42a42dd2ff9e96b808565fdc79e6729ae Mon Sep 17 00:00:00 2001 From: Jan Bronicki Date: Sun, 4 Sep 2022 01:45:02 +0200 Subject: [PATCH 18/29] kerbkjaerbkjre --- .github/workflows/build.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 07adb03..6273c5d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,10 +13,15 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] + toolchain: [stable, beta, nightly] name: 🔨 Build release runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 + - name: Install latest ${{ matrix.toolchain }} + uses: actions-rs/toolchain@v1 + with: + toolchain: ${{ matrix.toolchain }} - uses: actions/cache@v3 with: path: | From 8051e042240e920974a52cb2dbae26449231e5fa Mon Sep 17 00:00:00 2001 From: Jan Bronicki Date: Sun, 4 Sep 2022 01:51:05 +0200 Subject: [PATCH 19/29] kefrbhjarjbh --- .github/workflows/tests.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 039c2d5..90c4866 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,9 +13,16 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] + toolchain: [stable, beta, nightly] name: 🧪 Run tests runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 + - name: Install latest ${{ matrix.toolchain }} + uses: actions-rs/toolchain@v1 + with: + toolchain: ${{ matrix.toolchain }} + - uses: actions/checkout@v2 - name: Run tests run: cargo test --verbose + From 2f219e55086589978decfad613f88a1b5fe6c122 Mon Sep 17 00:00:00 2001 From: Jan Bronicki Date: Sun, 4 Sep 2022 01:54:27 +0200 Subject: [PATCH 20/29] hjklsdfhjklsdgflkjh --- .github/workflows/build.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6273c5d..2331ff6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,11 +34,3 @@ jobs: - name: Build release run: cargo build --release - package: - name: 📦 Check package generation - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Check package generation - run: cargo package - From 1439d5d98c4efa8f08ea952dfa01725e3d00c71a Mon Sep 17 00:00:00 2001 From: Jan Bronicki Date: Tue, 6 Sep 2022 01:03:02 +0200 Subject: [PATCH 21/29] adrg --- .github/workflows/format.yml | 30 +++++++++++++++++-- .github/workflows/lint.yml | 7 ++++- .rustfmt.toml | 1 - LICENSE | 1 - Makefile.toml | 12 +++++++- deny.yml => deny.toml | 56 +++++++++++++++++------------------- 6 files changed, 71 insertions(+), 36 deletions(-) rename deny.yml => deny.toml (84%) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 412f790..7779e9f 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -14,6 +14,32 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + - uses: davidB/rust-cargo-make@v1 - name: Check Formatting - run: cargo fmt -- --verbose --check --color auto - + run: cargo make rust-fmt-check + check_format_markdown: + name: 🖋 Check markdown files + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v2 + - name: Markdown Linting Action + uses: avto-dev/markdown-lint@v1.5.0 + with: + args: "*.md" + check_format_toml: + name: 🪦 Check markdown files + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + - uses: davidB/rust-cargo-make@v1 + - run: cargo make toml-fmt-check \ No newline at end of file diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9f2932a..4bc41d4 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,5 +1,5 @@ -name: 🖋 Check lintig +name: 🖋 Check linting on: pull_request: @@ -15,6 +15,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + - uses: davidB/rust-cargo-make@v1 - name: Check linting run: | rustup component add clippy diff --git a/.rustfmt.toml b/.rustfmt.toml index 88bb35b..1460aaa 100644 --- a/.rustfmt.toml +++ b/.rustfmt.toml @@ -1,2 +1 @@ max_width = 88 -ignore = ["."] # rustfmt does a poor job, and I don't want it ruining well-formatted code diff --git a/LICENSE b/LICENSE index dda2da5..94db588 100644 --- a/LICENSE +++ b/LICENSE @@ -19,4 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - diff --git a/Makefile.toml b/Makefile.toml index dad9e9a..1beffd0 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -6,6 +6,16 @@ install_crate = "rustfmt" command = "cargo" args = ["fmt", "--", "--emit=files"] +[tasks.rust-fmt-check] +install_crate = "rustfmt" +command = "cargo" +args = ["fmt", "--", "--verbose", "--color", "auto"] + +[tasks.toml-fmt-check] +install_crate = "taplo-cli" +command = "taplo" +args = ["fmt", "--check", "*.toml"] + [tasks.clean] command = "cargo" args = ["clean"] @@ -28,4 +38,4 @@ dependencies = ["clean"] [tasks.doc] command = "cargo" args = ["doc"] -dependencies = ["clean"] \ No newline at end of file +dependencies = ["clean"] diff --git a/deny.yml b/deny.toml similarity index 84% rename from deny.yml rename to deny.toml index dd4e69c..9f82215 100644 --- a/deny.yml +++ b/deny.toml @@ -18,13 +18,13 @@ # dependencies not shared by any other crates, would be ignored, as the target # list here is effectively saying which targets you are building for. targets = [ - # The triple can be any string, but only the target triples built in to - # rustc (as of 1.40) can be checked against actual config expressions - #{ triple = "x86_64-unknown-linux-musl" }, - # You can also specify which target_features you promise are enabled for a - # particular target. target_features are currently not validated against - # the actual valid features supported by the target architecture. - #{ triple = "wasm32-unknown-unknown", features = ["atomics"] }, + # The triple can be any string, but only the target triples built in to + # rustc (as of 1.40) can be checked against actual config expressions + #{ triple = "x86_64-unknown-linux-musl" }, + # You can also specify which target_features you promise are enabled for a + # particular target. target_features are currently not validated against + # the actual valid features supported by the target architecture. + #{ triple = "wasm32-unknown-unknown", features = ["atomics"] }, ] # This section is considered when running `cargo deny check advisories` @@ -48,7 +48,7 @@ notice = "warn" # A list of advisory IDs to ignore. Note that ignored advisories will still # output a note when they are encountered. ignore = [ - #"RUSTSEC-0000-0000", + #"RUSTSEC-0000-0000", ] # Threshold for security vulnerabilities, any vulnerability with a CVSS score # lower than the range specified will be ignored. Note that ignored advisories @@ -69,16 +69,12 @@ unlicensed = "warn" # List of explicitly allowed licenses # See https://spdx.org/licenses/ for list of possible licenses # [possible values: any SPDX 3.11 short identifier (+ optional exception)]. -allow = [ - "MIT", - "Apache-2.0", - "Apache-2.0 WITH LLVM-exception", -] +allow = ["MIT", "Apache-2.0", "Apache-2.0 WITH LLVM-exception"] # List of explicitly disallowed licenses # See https://spdx.org/licenses/ for list of possible licenses # [possible values: any SPDX 3.11 short identifier (+ optional exception)]. deny = [ - #"Nokia", + #"Nokia", ] # Lint level for licenses considered copyleft copyleft = "warn" @@ -102,9 +98,9 @@ confidence-threshold = 0.8 # Allow 1 or more licenses on a per-crate basis, so that particular licenses # aren't accepted for every possible crate as with the normal allow list exceptions = [ - # Each entry is the crate and version constraint, and its specific allow - # list - #{ allow = ["Zlib"], name = "adler32", version = "*" }, + # Each entry is the crate and version constraint, and its specific allow + # list + #{ allow = ["Zlib"], name = "adler32", version = "*" }, ] # Some crates don't have (easily) machine readable licensing information, @@ -123,8 +119,8 @@ exceptions = [ # and the crate will be checked normally, which may produce warnings or errors # depending on the rest of your configuration #license-files = [ - # Each entry is a crate relative path, and the (opaque) hash of its contents - #{ path = "LICENSE", hash = 0xbd0eed23 } +# Each entry is a crate relative path, and the (opaque) hash of its contents +#{ path = "LICENSE", hash = 0xbd0eed23 } #] [licenses.private] @@ -137,7 +133,7 @@ ignore = false # is only published to private registries, and ignore is true, the crate will # not have its license(s) checked registries = [ - #"https://sekretz.com/registry + #"https://sekretz.com/registry ] # This section is considered when running `cargo deny check bans`. @@ -156,28 +152,28 @@ wildcards = "allow" highlight = "all" # List of crates that are allowed. Use with care! allow = [ - #{ name = "ansi_term", version = "=0.11.0" }, + #{ name = "ansi_term", version = "=0.11.0" }, ] # List of crates to deny deny = [ - # Each entry the name of a crate and a version range. If version is - # not specified, all versions will be matched. - #{ name = "ansi_term", version = "=0.11.0" }, - # - # Wrapper crates can optionally be specified to allow the crate when it - # is a direct dependency of the otherwise banned crate - #{ name = "ansi_term", version = "=0.11.0", wrappers = [] }, + # Each entry the name of a crate and a version range. If version is + # not specified, all versions will be matched. + #{ name = "ansi_term", version = "=0.11.0" }, + # + # Wrapper crates can optionally be specified to allow the crate when it + # is a direct dependency of the otherwise banned crate + #{ name = "ansi_term", version = "=0.11.0", wrappers = [] }, ] # Certain crates/versions that will be skipped when doing duplicate detection. skip = [ - #{ name = "ansi_term", version = "=0.11.0" }, + #{ name = "ansi_term", version = "=0.11.0" }, ] # Similarly to `skip` allows you to skip certain crates during duplicate # detection. Unlike skip, it also includes the entire tree of transitive # dependencies starting at the specified crate, up to a certain depth, which is # by default infinite skip-tree = [ - #{ name = "ansi_term", version = "=0.11.0", depth = 20 }, + #{ name = "ansi_term", version = "=0.11.0", depth = 20 }, ] # This section is considered when running `cargo deny check sources`. From 7bcecf78de1a3d1879297c597686b82929076642 Mon Sep 17 00:00:00 2001 From: Jan Bronicki Date: Tue, 6 Sep 2022 01:35:45 +0200 Subject: [PATCH 22/29] asdfasdf --- .github/issue_template.md | 9 +++++++++ .github/pull_request_template.md | 12 ++++++++++++ Makefile.toml | 2 +- 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .github/issue_template.md create mode 100644 .github/pull_request_template.md diff --git a/.github/issue_template.md b/.github/issue_template.md new file mode 100644 index 0000000..df84854 --- /dev/null +++ b/.github/issue_template.md @@ -0,0 +1,9 @@ +### Description + + + + +### Checklist + +* [ ] Connect all related issues, and project boards, add labels, assign people, milestones etc. +* [ ] Make sure that this template is properly filled in and appropriate parts deleted diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..6e33670 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,12 @@ +### Description + + + + +### Checklist + + +* [ ] Add tests, documentation, update the changelog, etc. +* [ ] Connect all issues, and project boards, add labels, assign people to the PR and the issue, etc. +* [ ] Make sure that the PR description and title contain "Draft: " at the beginning if its not yet ready +* [ ] Make sure that this template is properly filled in and appropriate parts deleted diff --git a/Makefile.toml b/Makefile.toml index 1beffd0..4f861ae 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -12,7 +12,7 @@ command = "cargo" args = ["fmt", "--", "--verbose", "--color", "auto"] [tasks.toml-fmt-check] -install_crate = "taplo-cli" +install_crate = { crate_name = "taplo-cli", binary = "taplo", test_arg = "--help" } command = "taplo" args = ["fmt", "--check", "*.toml"] From e67b42d69166722405a502df7998ad658590a99c Mon Sep 17 00:00:00 2001 From: Jan Bronicki Date: Tue, 6 Sep 2022 01:41:54 +0200 Subject: [PATCH 23/29] jyhgftdres --- .github/workflows/format.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 7779e9f..70819a6 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -32,7 +32,7 @@ jobs: with: args: "*.md" check_format_toml: - name: 🪦 Check markdown files + name: 🪦 Check toml files runs-on: ubuntu-latest steps: - name: Check out code From 37cd8f8508e14ea6d524d92e238b89fe7b0d00c6 Mon Sep 17 00:00:00 2001 From: Jan Bronicki Date: Tue, 6 Sep 2022 01:46:08 +0200 Subject: [PATCH 24/29] sdfgsdfg --- .github/workflows/package.yml | 28 +++++++++------------------- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 0108c66..a222387 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -9,15 +9,15 @@ env: CARGO_TERM_COLOR: always jobs: - # license: - # name: 🏫License check - # runs-on: ubuntu-latest - # steps: - # - uses: actions/checkout@v2 - # - name: 🏫Check license - # run: | - # cargo install cargo-deny - # cargo deny check + license: + name: 🏫License check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: 🏫Check license + run: | + cargo install cargo-deny + cargo deny check cargo_check: name: 📦 Check package integrity @@ -34,13 +34,3 @@ jobs: - uses: actions/checkout@v2 - name: Publish dry run run: cargo publish --dry-run --verbose - - # dummy_publish: - # name: 📦⬆️📢Publish dummy - # # needs: [license, package, cargo_check, publish_dry_run] - # needs: [package, cargo_check, publish_dry_run] - # runs-on: ubuntu-latest - # steps: - # - uses: actions/checkout@v2 - # - name: 📦⬆️📢Publish dry run - # run: cargo publish --dry-run --verbose From f022f16cff98d8a5fa336b4a6d5d9b3d172d8178 Mon Sep 17 00:00:00 2001 From: Jan Bronicki Date: Wed, 7 Sep 2022 09:57:25 +0200 Subject: [PATCH 25/29] dfghdfgh --- CONTRIBUTING.md | 40 +++++++++++++--- deny.toml | 55 ++++++++++++---------- splits.vim | 120 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 184 insertions(+), 31 deletions(-) create mode 100644 splits.vim diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index cee498c..61d05fc 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -5,7 +5,27 @@ The branching strategy looks like this: -The short description of the branching strategy is as follows. The feature branches are a category of branches that branch out of the `develop` branch. A person branches out from develop, works on a given feature on their branch and when the feature is ready they submit a Pull Request to merge again into the develop branch. After the review process is finished the commits from the branch should be squashed and then merged into `develop` (GitHubs WebUI provides that). Therefore each commit that lands on the `develop` branch is an addition of a feature, documentation etc.. When an arbitrary set of new features is completed and could be deemed as a new release (release cycle should follow the [semver](https://semver.org/) convention) it should be merged into `main` (of course it should also follow the process of a Pull Request and reviews) when it is merged into `main` additional testing, validation etc. should be done as this is now a release candidate. If the state of the code is deemed safe and proper it should be released as a new version of the software. This should be done by tagging which marks a given commit a release candidate which should automatically trigger a series of CI/CD checks and if they succeed the software package will be finally released. +The short description of the branching strategy is as follows. +The feature branches are a category of branches that branch out +of the `develop` branch. A person branches out from develop, +works on a given feature on their branch and when the feature +is ready they submit a Pull Request to merge again into the +develop branch. After the review process is finished the commits +from the branch should be squashed and then merged into `develop` +(GitHubs WebUI provides that). Therefore each commit that lands +on the `develop` branch is an addition of a feature, documentation +etc.. When an arbitrary set of new features is completed and could +be deemed as a new release (release cycle should follow the +[semver](https://semver.org/) convention) it should be merged +into `main` (of course it should also follow the process of a +Pull Request and reviews) when it is merged into `main` +additional testing, validation etc. should be done as this is +now a release candidate. If the state of the code is deemed safe +and proper it should be released as a new version of the software. +This should be done by tagging which marks a given commit a +release candidate which should automatically trigger a series of +CI/CD checks and if they succeed the software package will +be finally released. ![branching](img/branching.png) @@ -18,7 +38,8 @@ If you want to work on something create an issue for that. 1. Fill out the name for the issue 2. Provide a description for the task and what are your plans etc. 3. If you know you will be working on that task assign yourself -4. Add applicable labels to the task, e.g. if you are solving a bug then add `Bug`, if adding a new functionality add `Enhancement` etc. +4. Add applicable labels to the task, e.g. if you are solving a bug +then add `Bug`, if adding a new functionality add `Enhancement` etc. 5. Assign the task to the `rust-pip` project 6. If applicable assign the task to a given milestone 7. Submit the issue/task @@ -27,7 +48,8 @@ If you want to work on something create an issue for that. ## Creating a branch and using it -Then when you have created an issue for you task click the `Create new branch` in the lower right corner: +Then when you have created an issue for you task click the `Create new branch` +in the lower right corner: ![cr](img/create_a_branch.png) @@ -44,7 +66,9 @@ Now a branch has been created for you, copy the commands needed for you to use i ![asd](img/checkout.png) -In you cloned repository open a terminal and paste the copied commands. Now you should be on your newly created branch and you can start working. To make sure you are on that branch run: +In you cloned repository open a terminal and paste the copied commands. +Now you should be on your newly created branch and you can start working. +To make sure you are on that branch run: ```bash $ git branch @@ -53,11 +77,15 @@ $ git branch ``` The branch on which you currently reside will be marked with a `*`. -Next simply keep working on your branch, push commits, and when you think you are ready create a Pull Request, make sure that you mark your PR as a draft if its not ready for review otherwise it looks like noise. +Next simply keep working on your branch, push commits, and when you think +you are ready create a Pull Request, make sure that you mark your PR as a +draft if its not ready for review otherwise it looks like noise. ## Creating a Pull Request (PR) -After you create changes on your branch create a Pull Request and mark it as a `Draft` as that it can be seen that you are working on a given issue. Similarly to creating an issue ensure that: +After you create changes on your branch create a Pull Request and mark it +as a `Draft` as that it can be seen that you are working on a given issue. +Similarly to creating an issue ensure that: * Summary of changes in the body of the pull * Labels diff --git a/deny.toml b/deny.toml index 9f82215..45bd367 100644 --- a/deny.toml +++ b/deny.toml @@ -18,13 +18,13 @@ # dependencies not shared by any other crates, would be ignored, as the target # list here is effectively saying which targets you are building for. targets = [ - # The triple can be any string, but only the target triples built in to - # rustc (as of 1.40) can be checked against actual config expressions - #{ triple = "x86_64-unknown-linux-musl" }, - # You can also specify which target_features you promise are enabled for a - # particular target. target_features are currently not validated against - # the actual valid features supported by the target architecture. - #{ triple = "wasm32-unknown-unknown", features = ["atomics"] }, + # The triple can be any string, but only the target triples built in to + # rustc (as of 1.40) can be checked against actual config expressions + #{ triple = "x86_64-unknown-linux-musl" }, + # You can also specify which target_features you promise are enabled for a + # particular target. target_features are currently not validated against + # the actual valid features supported by the target architecture. + #{ triple = "wasm32-unknown-unknown", features = ["atomics"] }, ] # This section is considered when running `cargo deny check advisories` @@ -48,7 +48,7 @@ notice = "warn" # A list of advisory IDs to ignore. Note that ignored advisories will still # output a note when they are encountered. ignore = [ - #"RUSTSEC-0000-0000", + #"RUSTSEC-0000-0000", ] # Threshold for security vulnerabilities, any vulnerability with a CVSS score # lower than the range specified will be ignored. Note that ignored advisories @@ -69,12 +69,17 @@ unlicensed = "warn" # List of explicitly allowed licenses # See https://spdx.org/licenses/ for list of possible licenses # [possible values: any SPDX 3.11 short identifier (+ optional exception)]. -allow = ["MIT", "Apache-2.0", "Apache-2.0 WITH LLVM-exception"] +allow = [ + "MIT", + "Apache-2.0", + "Apache-2.0 WITH LLVM-exception", + "Unicode-DFS-2016", +] # List of explicitly disallowed licenses # See https://spdx.org/licenses/ for list of possible licenses # [possible values: any SPDX 3.11 short identifier (+ optional exception)]. deny = [ - #"Nokia", + #"Nokia", ] # Lint level for licenses considered copyleft copyleft = "warn" @@ -98,9 +103,9 @@ confidence-threshold = 0.8 # Allow 1 or more licenses on a per-crate basis, so that particular licenses # aren't accepted for every possible crate as with the normal allow list exceptions = [ - # Each entry is the crate and version constraint, and its specific allow - # list - #{ allow = ["Zlib"], name = "adler32", version = "*" }, + # Each entry is the crate and version constraint, and its specific allow + # list + #{ allow = ["Zlib"], name = "adler32", version = "*" }, ] # Some crates don't have (easily) machine readable licensing information, @@ -133,7 +138,7 @@ ignore = false # is only published to private registries, and ignore is true, the crate will # not have its license(s) checked registries = [ - #"https://sekretz.com/registry + #"https://sekretz.com/registry ] # This section is considered when running `cargo deny check bans`. @@ -152,28 +157,28 @@ wildcards = "allow" highlight = "all" # List of crates that are allowed. Use with care! allow = [ - #{ name = "ansi_term", version = "=0.11.0" }, + #{ name = "ansi_term", version = "=0.11.0" }, ] # List of crates to deny deny = [ - # Each entry the name of a crate and a version range. If version is - # not specified, all versions will be matched. - #{ name = "ansi_term", version = "=0.11.0" }, - # - # Wrapper crates can optionally be specified to allow the crate when it - # is a direct dependency of the otherwise banned crate - #{ name = "ansi_term", version = "=0.11.0", wrappers = [] }, + # Each entry the name of a crate and a version range. If version is + # not specified, all versions will be matched. + #{ name = "ansi_term", version = "=0.11.0" }, + # + # Wrapper crates can optionally be specified to allow the crate when it + # is a direct dependency of the otherwise banned crate + #{ name = "ansi_term", version = "=0.11.0", wrappers = [] }, ] # Certain crates/versions that will be skipped when doing duplicate detection. skip = [ - #{ name = "ansi_term", version = "=0.11.0" }, + #{ name = "ansi_term", version = "=0.11.0" }, ] # Similarly to `skip` allows you to skip certain crates during duplicate # detection. Unlike skip, it also includes the entire tree of transitive # dependencies starting at the specified crate, up to a certain depth, which is # by default infinite skip-tree = [ - #{ name = "ansi_term", version = "=0.11.0", depth = 20 }, + #{ name = "ansi_term", version = "=0.11.0", depth = 20 }, ] # This section is considered when running `cargo deny check sources`. @@ -198,4 +203,4 @@ github = [""] # 1 or more gitlab.com organizations to allow git sources for gitlab = [""] # 1 or more bitbucket.org organizations to allow git sources for -bitbucket = [""] +bitbucket = [""] \ No newline at end of file diff --git a/splits.vim b/splits.vim new file mode 100644 index 0000000..9c51da5 --- /dev/null +++ b/splits.vim @@ -0,0 +1,120 @@ +let SessionLoad = 1 +let s:so_save = &g:so | let s:siso_save = &g:siso | setg so=0 siso=0 | setl so=-1 siso=-1 +let v:this_session=expand(":p") +silent only +silent tabonly +cd ~/Documents/Programming/rust-pip +if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == '' + let s:wipebuf = bufnr('%') +endif +let s:shortmess_save = &shortmess +if &shortmess =~ 'A' + set shortmess=aoOA +else + set shortmess=aoO +endif +badd +1 ~/Documents/Programming/rust-pip/Makefile.toml +badd +1 ~/Documents/Programming/rust-pip/README.md +argglobal +%argdel +$argadd . +edit ~/Documents/Programming/rust-pip/README.md +let s:save_splitbelow = &splitbelow +let s:save_splitright = &splitright +set splitbelow splitright +wincmd _ | wincmd | +vsplit +wincmd _ | wincmd | +vsplit +2wincmd h +wincmd w +wincmd w +let &splitbelow = s:save_splitbelow +let &splitright = s:save_splitright +wincmd t +let s:save_winminheight = &winminheight +let s:save_winminwidth = &winminwidth +set winminheight=0 +set winheight=1 +set winminwidth=0 +set winwidth=1 +exe 'vert 1resize ' . ((&columns * 110 + 126) / 253) +exe 'vert 2resize ' . ((&columns * 111 + 126) / 253) +exe 'vert 3resize ' . ((&columns * 30 + 126) / 253) +argglobal +balt ~/Documents/Programming/rust-pip/Makefile.toml +setlocal fdm=manual +setlocal fde= +setlocal fmr={{{,}}} +setlocal fdi=# +setlocal fdl=0 +setlocal fml=1 +setlocal fdn=20 +setlocal fen +silent! normal! zE +let &fdl = &fdl +let s:l = 1 - ((0 * winheight(0) + 29) / 59) +if s:l < 1 | let s:l = 1 | endif +keepjumps exe s:l +normal! zt +keepjumps 1 +normal! 0 +wincmd w +argglobal +if bufexists(fnamemodify("~/Documents/Programming/rust-pip/Makefile.toml", ":p")) | buffer ~/Documents/Programming/rust-pip/Makefile.toml | else | edit ~/Documents/Programming/rust-pip/Makefile.toml | endif +if &buftype ==# 'terminal' + silent file ~/Documents/Programming/rust-pip/Makefile.toml +endif +balt ~/Documents/Programming/rust-pip/README.md +setlocal fdm=manual +setlocal fde= +setlocal fmr={{{,}}} +setlocal fdi=# +setlocal fdl=0 +setlocal fml=1 +setlocal fdn=20 +setlocal fen +silent! normal! zE +let &fdl = &fdl +let s:l = 1 - ((0 * winheight(0) + 29) / 59) +if s:l < 1 | let s:l = 1 | endif +keepjumps exe s:l +normal! zt +keepjumps 1 +normal! 0 +wincmd w +argglobal +enew +file NvimTree_1 +balt ~/Documents/Programming/rust-pip/Makefile.toml +setlocal fdm=manual +setlocal fde= +setlocal fmr={{{,}}} +setlocal fdi=# +setlocal fdl=0 +setlocal fml=1 +setlocal fdn=20 +setlocal nofen +wincmd w +exe 'vert 1resize ' . ((&columns * 110 + 126) / 253) +exe 'vert 2resize ' . ((&columns * 111 + 126) / 253) +exe 'vert 3resize ' . ((&columns * 30 + 126) / 253) +tabnext 1 +if exists('s:wipebuf') && len(win_findbuf(s:wipebuf)) == 0 && getbufvar(s:wipebuf, '&buftype') isnot# 'terminal' + silent exe 'bwipe ' . s:wipebuf +endif +unlet! s:wipebuf +set winheight=1 winwidth=20 +let &shortmess = s:shortmess_save +let &winminheight = s:save_winminheight +let &winminwidth = s:save_winminwidth +let s:sx = expand(":p:r")."x.vim" +if filereadable(s:sx) + exe "source " . fnameescape(s:sx) +endif +let &g:so = s:so_save | let &g:siso = s:siso_save +set hlsearch +nohlsearch +doautoall SessionLoadPost +unlet SessionLoad +" vim: set ft=vim : From f71dd7e651244e584145dc3df95618681f225377 Mon Sep 17 00:00:00 2001 From: Jan Bronicki Date: Wed, 7 Sep 2022 09:58:10 +0200 Subject: [PATCH 26/29] asdfasdf --- .gitignore | 5 ++- splits.vim | 120 ----------------------------------------------------- 2 files changed, 4 insertions(+), 121 deletions(-) delete mode 100644 splits.vim diff --git a/.gitignore b/.gitignore index 10b880e..545a39a 100644 --- a/.gitignore +++ b/.gitignore @@ -24,4 +24,7 @@ target/ workspace.code-workspace # macOS -.DS_Store \ No newline at end of file +.DS_Store + +# Vim files +*.vim \ No newline at end of file diff --git a/splits.vim b/splits.vim deleted file mode 100644 index 9c51da5..0000000 --- a/splits.vim +++ /dev/null @@ -1,120 +0,0 @@ -let SessionLoad = 1 -let s:so_save = &g:so | let s:siso_save = &g:siso | setg so=0 siso=0 | setl so=-1 siso=-1 -let v:this_session=expand(":p") -silent only -silent tabonly -cd ~/Documents/Programming/rust-pip -if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == '' - let s:wipebuf = bufnr('%') -endif -let s:shortmess_save = &shortmess -if &shortmess =~ 'A' - set shortmess=aoOA -else - set shortmess=aoO -endif -badd +1 ~/Documents/Programming/rust-pip/Makefile.toml -badd +1 ~/Documents/Programming/rust-pip/README.md -argglobal -%argdel -$argadd . -edit ~/Documents/Programming/rust-pip/README.md -let s:save_splitbelow = &splitbelow -let s:save_splitright = &splitright -set splitbelow splitright -wincmd _ | wincmd | -vsplit -wincmd _ | wincmd | -vsplit -2wincmd h -wincmd w -wincmd w -let &splitbelow = s:save_splitbelow -let &splitright = s:save_splitright -wincmd t -let s:save_winminheight = &winminheight -let s:save_winminwidth = &winminwidth -set winminheight=0 -set winheight=1 -set winminwidth=0 -set winwidth=1 -exe 'vert 1resize ' . ((&columns * 110 + 126) / 253) -exe 'vert 2resize ' . ((&columns * 111 + 126) / 253) -exe 'vert 3resize ' . ((&columns * 30 + 126) / 253) -argglobal -balt ~/Documents/Programming/rust-pip/Makefile.toml -setlocal fdm=manual -setlocal fde= -setlocal fmr={{{,}}} -setlocal fdi=# -setlocal fdl=0 -setlocal fml=1 -setlocal fdn=20 -setlocal fen -silent! normal! zE -let &fdl = &fdl -let s:l = 1 - ((0 * winheight(0) + 29) / 59) -if s:l < 1 | let s:l = 1 | endif -keepjumps exe s:l -normal! zt -keepjumps 1 -normal! 0 -wincmd w -argglobal -if bufexists(fnamemodify("~/Documents/Programming/rust-pip/Makefile.toml", ":p")) | buffer ~/Documents/Programming/rust-pip/Makefile.toml | else | edit ~/Documents/Programming/rust-pip/Makefile.toml | endif -if &buftype ==# 'terminal' - silent file ~/Documents/Programming/rust-pip/Makefile.toml -endif -balt ~/Documents/Programming/rust-pip/README.md -setlocal fdm=manual -setlocal fde= -setlocal fmr={{{,}}} -setlocal fdi=# -setlocal fdl=0 -setlocal fml=1 -setlocal fdn=20 -setlocal fen -silent! normal! zE -let &fdl = &fdl -let s:l = 1 - ((0 * winheight(0) + 29) / 59) -if s:l < 1 | let s:l = 1 | endif -keepjumps exe s:l -normal! zt -keepjumps 1 -normal! 0 -wincmd w -argglobal -enew -file NvimTree_1 -balt ~/Documents/Programming/rust-pip/Makefile.toml -setlocal fdm=manual -setlocal fde= -setlocal fmr={{{,}}} -setlocal fdi=# -setlocal fdl=0 -setlocal fml=1 -setlocal fdn=20 -setlocal nofen -wincmd w -exe 'vert 1resize ' . ((&columns * 110 + 126) / 253) -exe 'vert 2resize ' . ((&columns * 111 + 126) / 253) -exe 'vert 3resize ' . ((&columns * 30 + 126) / 253) -tabnext 1 -if exists('s:wipebuf') && len(win_findbuf(s:wipebuf)) == 0 && getbufvar(s:wipebuf, '&buftype') isnot# 'terminal' - silent exe 'bwipe ' . s:wipebuf -endif -unlet! s:wipebuf -set winheight=1 winwidth=20 -let &shortmess = s:shortmess_save -let &winminheight = s:save_winminheight -let &winminwidth = s:save_winminwidth -let s:sx = expand(":p:r")."x.vim" -if filereadable(s:sx) - exe "source " . fnameescape(s:sx) -endif -let &g:so = s:so_save | let &g:siso = s:siso_save -set hlsearch -nohlsearch -doautoall SessionLoadPost -unlet SessionLoad -" vim: set ft=vim : From 5ec9db1d48cbf8a003192e49a5b2c2a1a12152ec Mon Sep 17 00:00:00 2001 From: Jan Bronicki Date: Wed, 7 Sep 2022 09:59:51 +0200 Subject: [PATCH 27/29] formattttting --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 78a1a15..fe16ba1 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,8 @@ Pip rewritten in Rust. ## How to contribute -Please read this file and follow its instructions when it comes to contributing ot the project: +Please read this file and follow its instructions when it comes to +contributing ot the project: * [CONTRIBUTING.md](CONTRIBUTING.md) From 7bdac0fd7db65d8c4816ae284f458687d648e70c Mon Sep 17 00:00:00 2001 From: Jan Bronicki Date: Wed, 7 Sep 2022 10:46:01 +0200 Subject: [PATCH 28/29] asdf --- deny.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deny.toml b/deny.toml index 45bd367..a11947b 100644 --- a/deny.toml +++ b/deny.toml @@ -74,6 +74,7 @@ allow = [ "Apache-2.0", "Apache-2.0 WITH LLVM-exception", "Unicode-DFS-2016", + "BSD-3-Clause", ] # List of explicitly disallowed licenses # See https://spdx.org/licenses/ for list of possible licenses @@ -203,4 +204,4 @@ github = [""] # 1 or more gitlab.com organizations to allow git sources for gitlab = [""] # 1 or more bitbucket.org organizations to allow git sources for -bitbucket = [""] \ No newline at end of file +bitbucket = [""] From d8a7156286b720fb60236dc927e48e53f3ae660a Mon Sep 17 00:00:00 2001 From: Jan Bronicki Date: Wed, 7 Sep 2022 10:54:58 +0200 Subject: [PATCH 29/29] asdf --- deny.toml | 56 +++++++++++++++++++++++++++---------------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/deny.toml b/deny.toml index a11947b..cb370f4 100644 --- a/deny.toml +++ b/deny.toml @@ -18,13 +18,13 @@ # dependencies not shared by any other crates, would be ignored, as the target # list here is effectively saying which targets you are building for. targets = [ - # The triple can be any string, but only the target triples built in to - # rustc (as of 1.40) can be checked against actual config expressions - #{ triple = "x86_64-unknown-linux-musl" }, - # You can also specify which target_features you promise are enabled for a - # particular target. target_features are currently not validated against - # the actual valid features supported by the target architecture. - #{ triple = "wasm32-unknown-unknown", features = ["atomics"] }, + # The triple can be any string, but only the target triples built in to + # rustc (as of 1.40) can be checked against actual config expressions + #{ triple = "x86_64-unknown-linux-musl" }, + # You can also specify which target_features you promise are enabled for a + # particular target. target_features are currently not validated against + # the actual valid features supported by the target architecture. + #{ triple = "wasm32-unknown-unknown", features = ["atomics"] }, ] # This section is considered when running `cargo deny check advisories` @@ -48,7 +48,7 @@ notice = "warn" # A list of advisory IDs to ignore. Note that ignored advisories will still # output a note when they are encountered. ignore = [ - #"RUSTSEC-0000-0000", + #"RUSTSEC-0000-0000", ] # Threshold for security vulnerabilities, any vulnerability with a CVSS score # lower than the range specified will be ignored. Note that ignored advisories @@ -70,17 +70,17 @@ unlicensed = "warn" # See https://spdx.org/licenses/ for list of possible licenses # [possible values: any SPDX 3.11 short identifier (+ optional exception)]. allow = [ - "MIT", - "Apache-2.0", - "Apache-2.0 WITH LLVM-exception", - "Unicode-DFS-2016", - "BSD-3-Clause", + "MIT", + "Apache-2.0", + "Apache-2.0 WITH LLVM-exception", + "Unicode-DFS-2016", + "BSD-3-Clause", ] # List of explicitly disallowed licenses # See https://spdx.org/licenses/ for list of possible licenses # [possible values: any SPDX 3.11 short identifier (+ optional exception)]. deny = [ - #"Nokia", + #"Nokia", ] # Lint level for licenses considered copyleft copyleft = "warn" @@ -104,9 +104,9 @@ confidence-threshold = 0.8 # Allow 1 or more licenses on a per-crate basis, so that particular licenses # aren't accepted for every possible crate as with the normal allow list exceptions = [ - # Each entry is the crate and version constraint, and its specific allow - # list - #{ allow = ["Zlib"], name = "adler32", version = "*" }, + # Each entry is the crate and version constraint, and its specific allow + # list + #{ allow = ["Zlib"], name = "adler32", version = "*" }, ] # Some crates don't have (easily) machine readable licensing information, @@ -139,7 +139,7 @@ ignore = false # is only published to private registries, and ignore is true, the crate will # not have its license(s) checked registries = [ - #"https://sekretz.com/registry + #"https://sekretz.com/registry ] # This section is considered when running `cargo deny check bans`. @@ -158,28 +158,28 @@ wildcards = "allow" highlight = "all" # List of crates that are allowed. Use with care! allow = [ - #{ name = "ansi_term", version = "=0.11.0" }, + #{ name = "ansi_term", version = "=0.11.0" }, ] # List of crates to deny deny = [ - # Each entry the name of a crate and a version range. If version is - # not specified, all versions will be matched. - #{ name = "ansi_term", version = "=0.11.0" }, - # - # Wrapper crates can optionally be specified to allow the crate when it - # is a direct dependency of the otherwise banned crate - #{ name = "ansi_term", version = "=0.11.0", wrappers = [] }, + # Each entry the name of a crate and a version range. If version is + # not specified, all versions will be matched. + #{ name = "ansi_term", version = "=0.11.0" }, + # + # Wrapper crates can optionally be specified to allow the crate when it + # is a direct dependency of the otherwise banned crate + #{ name = "ansi_term", version = "=0.11.0", wrappers = [] }, ] # Certain crates/versions that will be skipped when doing duplicate detection. skip = [ - #{ name = "ansi_term", version = "=0.11.0" }, + #{ name = "ansi_term", version = "=0.11.0" }, ] # Similarly to `skip` allows you to skip certain crates during duplicate # detection. Unlike skip, it also includes the entire tree of transitive # dependencies starting at the specified crate, up to a certain depth, which is # by default infinite skip-tree = [ - #{ name = "ansi_term", version = "=0.11.0", depth = 20 }, + #{ name = "ansi_term", version = "=0.11.0", depth = 20 }, ] # This section is considered when running `cargo deny check sources`.