feat: add cargo deny config
Also make code compliant. Signed-off-by: Charlotte Meyer <dev@buffet.sh>
This commit is contained in:
parent
a88a163273
commit
f0f0d4e626
5 changed files with 34 additions and 6 deletions
|
@ -5,6 +5,6 @@ edition = "2021"
|
|||
license.workspace = true
|
||||
|
||||
[dependencies]
|
||||
oyster_lineedit = { path = "../oyster_lineedit" }
|
||||
oyster_parser = { path = "../oyster_parser" }
|
||||
oyster_runtime = { path = "../oyster_runtime" }
|
||||
oyster_lineedit = { version = "0.0.0", path = "../oyster_lineedit" }
|
||||
oyster_parser = { version = "0.0.0", path = "../oyster_parser" }
|
||||
oyster_runtime = { version = "0.0.0", path = "../oyster_runtime" }
|
||||
|
|
|
@ -16,4 +16,4 @@ quote = { version = "^1.0.21", default-features = false }
|
|||
syn = { version = "^1.0.102", default-features = false, features = [ "full" ] }
|
||||
|
||||
[dev-dependencies]
|
||||
oyster_runtime = { path = "../oyster_runtime" }
|
||||
oyster_runtime = { version = "0.0.0", path = "../oyster_runtime" }
|
||||
|
|
|
@ -8,8 +8,8 @@ license.workspace = true
|
|||
doctest = false
|
||||
|
||||
[dependencies]
|
||||
oyster_builtin_proc = { path = "../oyster_builtin_proc" }
|
||||
oyster_parser = { path = "../oyster_parser" }
|
||||
oyster_builtin_proc = { version = "0.0.0", path = "../oyster_builtin_proc" }
|
||||
oyster_parser = { version = "0.0.0", path = "../oyster_parser" }
|
||||
thiserror = "1.0.35"
|
||||
|
||||
[dependencies.nix]
|
||||
|
|
27
deny.toml
Normal file
27
deny.toml
Normal 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 = []
|
|
@ -47,6 +47,7 @@
|
|||
|
||||
devShell = pkgs.mkShell {
|
||||
nativeBuildInputs = with pkgs; [
|
||||
cargo-deny
|
||||
toolchain
|
||||
];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue