diff --git a/.github/workflows/ci-simple.yml b/.github/workflows/ci-simple.yml index 1d3458f..4cdb55b 100644 --- a/.github/workflows/ci-simple.yml +++ b/.github/workflows/ci-simple.yml @@ -34,8 +34,9 @@ jobs: cd ibus-akaza/ && make - uses: dtolnay/rust-toolchain@stable with: - components: clippy, rustfmt + components: clippy, rustfmt, deny - run: cargo fmt --all --check - run: cargo clippy -- -D warnings + - run: cargo deny check - run: cargo test diff --git a/Cargo.lock b/Cargo.lock index 90da0e3..12a91e7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -46,6 +46,7 @@ dependencies = [ "rayon", "regex", "tempfile", + "time 0.3.17", "vibrato", "walkdir", ] diff --git a/akaza-data/Cargo.toml b/akaza-data/Cargo.toml index 286e52f..afffccd 100644 --- a/akaza-data/Cargo.toml +++ b/akaza-data/Cargo.toml @@ -2,6 +2,7 @@ name = "akaza-data" version = "0.1.0" edition = "2021" +license = "MIT" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/deny.toml b/deny.toml new file mode 100644 index 0000000..7e98450 --- /dev/null +++ b/deny.toml @@ -0,0 +1,13 @@ +[licenses] +allow-osi-fsf-free = "either" +copyleft = "deny" + +[advisories] +ignore = [ + "RUSTSEC-2021-0145", # atty: dev deps + "RUSTSEC-2021-0139", # ansi_term: dev deps +] + +unmaintained = "deny" +unsound = "deny" +yanked = "deny" diff --git a/ibus-akaza/Cargo.toml b/ibus-akaza/Cargo.toml index 540948c..f616d53 100644 --- a/ibus-akaza/Cargo.toml +++ b/ibus-akaza/Cargo.toml @@ -2,6 +2,7 @@ name = "ibus-akaza" version = "0.1.0" edition = "2021" +license = "MIT" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/ibus-sys/Cargo.toml b/ibus-sys/Cargo.toml index 67734fd..de0e03f 100644 --- a/ibus-sys/Cargo.toml +++ b/ibus-sys/Cargo.toml @@ -2,6 +2,7 @@ name = "ibus-sys" version = "0.1.0" edition = "2021" +license = "MIT" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/libakaza/Cargo.toml b/libakaza/Cargo.toml index 04f2402..c1a9c03 100644 --- a/libakaza/Cargo.toml +++ b/libakaza/Cargo.toml @@ -2,6 +2,7 @@ name = "libakaza" version = "0.1.0" edition = "2021" +license = "MIT" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/marisa-sys/Cargo.toml b/marisa-sys/Cargo.toml index fcb544d..acff446 100644 --- a/marisa-sys/Cargo.toml +++ b/marisa-sys/Cargo.toml @@ -2,6 +2,7 @@ name = "marisa-sys" version = "0.1.0" edition = "2021" +license = "MIT" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html