Skip to content
Snippets Groups Projects
Commit 821c7556 authored by Éloïs's avatar Éloïs
Browse files

initial commit

parents
No related branches found
No related tags found
No related merge requests found
# Vim swap files
*~
*.swp
*.swo
# vscode
.vscode
# rust binaries
target
stages:
- tests
- quality
.env:
image: registry.duniter.org/docker/rust/rust-x64-stable-ci:latest
tags:
- redshift
before_script:
- export PATH="$HOME/.cargo/bin:$PATH"
- rustup show && rustc --version && cargo --version
tests:
extends: .env
rules:
- if: $CI_COMMIT_REF_NAME =~ /^wip*$/
when: manual
- if: $CI_COMMIT_TAG
when: never
- if: '$CI_MERGE_REQUEST_ID ||$CI_COMMIT_BRANCH == "main" || $CI_COMMIT_BRANCH =~ /^release/'
- when: manual
stage: tests
script:
- cargo test --all --all-features
coverage: '/<coverage>(\d+.\d+\%)<\/coverage>/'
fmt_and_clippy:
extends: .env
rules:
- if: $CI_COMMIT_TAG
when: never
- if: $CI_MERGE_REQUEST_ID
- when: on_success
stage: quality
script:
- cargo fmt -- --version
- cargo fmt -- --check
- cargo clippy -- -V
- cargo clippy --all --tests -- -D warnings --verbose
audit_dependencies:
extends: .env
before_script:
- cargo deny -V
stage: quality
script:
- cargo deny --workspace check
[hooks]
pre-commit = "cargo fmt -- --check"
[logging]
verbose = true
This diff is collapsed.
[advisories]
ignore = [
# Wait to comfy-table upgrade crossterm
"RUSTSEC-2020-0091",
# generic-array v0.12.3 allowed unsoundly extending lifetimes
# but used only on build-dependencies by pest_meta
"RUSTSEC-2020-0146",
]
[bans]
multiple-versions = "warn"
deny = [
# color-backtrace is nice but brings in too many dependencies and that are often outdated, so not worth it for us.
{ name = "color-backtrace" },
# deprecated
{ name = "quickersort" },
# term is not fully maintained, and termcolor is replacing it
{ name = "term" },
]
skip-tree = [
{ name = "winapi", version = "<= 0.3" },
]
[licenses]
unlicensed = "deny"
# We want really high confidence when inferring licenses from text
confidence-threshold = 0.92
allow = [
"AGPL-3.0",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause",
"CC0-1.0",
"ISC",
"MIT",
"MPL-2.0",
"OpenSSL",
"Zlib"
]
[[licenses.clarify]]
name = "ring"
# SPDX considers OpenSSL to encompass both the OpenSSL and SSLeay licenses
# https://spdx.org/licenses/OpenSSL.html
# ISC - Both BoringSSL and ring use this for their new files
# MIT - "Files in third_party/ have their own licenses, as described therein. The MIT
# license, for third_party/fiat, which, unlike other third_party directories, is
# compiled into non-test libraries, is included below."
# OpenSSL - Obviously
expression = "ISC AND MIT AND OpenSSL"
license-files = [
{ path = "LICENSE", hash = 0xbd0eed23 },
]
[[licenses.exceptions]]
allow = ["Unlicense"]
name = "async_io_stream"
version = "0.3.1"
[sources]
unknown-registry = "deny"
unknown-git = "deny"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment