feat: add cargo deny config

Also make code compliant.

Signed-off-by: Charlotte Meyer <dev@buffet.sh>
This commit is contained in:
buffet 2022-10-28 11:33:48 +00:00
parent a88a163273
commit f0f0d4e626
5 changed files with 34 additions and 6 deletions

View file

@ -5,6 +5,6 @@ edition = "2021"
license.workspace = true license.workspace = true
[dependencies] [dependencies]
oyster_lineedit = { path = "../oyster_lineedit" } oyster_lineedit = { version = "0.0.0", path = "../oyster_lineedit" }
oyster_parser = { path = "../oyster_parser" } oyster_parser = { version = "0.0.0", path = "../oyster_parser" }
oyster_runtime = { path = "../oyster_runtime" } oyster_runtime = { version = "0.0.0", path = "../oyster_runtime" }

View file

@ -16,4 +16,4 @@ quote = { version = "^1.0.21", default-features = false }
syn = { version = "^1.0.102", default-features = false, features = [ "full" ] } syn = { version = "^1.0.102", default-features = false, features = [ "full" ] }
[dev-dependencies] [dev-dependencies]
oyster_runtime = { path = "../oyster_runtime" } oyster_runtime = { version = "0.0.0", path = "../oyster_runtime" }

View file

@ -8,8 +8,8 @@ license.workspace = true
doctest = false doctest = false
[dependencies] [dependencies]
oyster_builtin_proc = { path = "../oyster_builtin_proc" } oyster_builtin_proc = { version = "0.0.0", path = "../oyster_builtin_proc" }
oyster_parser = { path = "../oyster_parser" } oyster_parser = { version = "0.0.0", path = "../oyster_parser" }
thiserror = "1.0.35" thiserror = "1.0.35"
[dependencies.nix] [dependencies.nix]

27
deny.toml Normal file
View file

@ -0,0 +1,27 @@
[advisories]
db-path = "~/.cargo/advisory-db"
db-urls = ["https://github.com/rustsec/advisory-db"]
vulnerability = "deny"
unmaintained = "deny"
yanked = "deny"
notice = "deny"
[licenses]
unlicensed = "deny"
copyleft = "deny"
allow = [
"Apache-2.0",
"MIT",
]
default = "deny"
[bans]
multiple-versions = "deny"
wildcards = "deny"
highlight = "all"
[sources]
unknown-registry = "deny"
unknown-git = "deny"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
allow-git = []

View file

@ -47,6 +47,7 @@
devShell = pkgs.mkShell { devShell = pkgs.mkShell {
nativeBuildInputs = with pkgs; [ nativeBuildInputs = with pkgs; [
cargo-deny
toolchain toolchain
]; ];
}; };