diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b8790bc1..05302bea 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,6 +33,8 @@ jobs: uses: crate-ci/typos@master - name: "Rustfmt" run: cargo fmt --all --check + - name: Lint dependencies + uses: EmbarkStudios/cargo-deny-action@v1 test: name: Test diff --git a/Cargo.lock b/Cargo.lock index 04bfe759..a53f8b7d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -700,7 +700,7 @@ dependencies = [ [[package]] name = "benchmarks" -version = "0.0.0" +version = "0.7.0" dependencies = [ "anyhow", "criterion", @@ -1445,7 +1445,7 @@ dependencies = [ [[package]] name = "examples" -version = "0.0.0" +version = "0.7.0" dependencies = [ "serde_json", "spider", @@ -4347,7 +4347,7 @@ dependencies = [ [[package]] name = "swiftide-test-utils" -version = "0.0.0" +version = "0.7.0" dependencies = [ "anyhow", "async-openai", diff --git a/Cargo.toml b/Cargo.toml index a2286510..a83c6fef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,10 +6,22 @@ members = [ "swiftide-indexing", "examples", - "benchmarks", "swiftide-test-utils", + "benchmarks", + "swiftide-test-utils", ] resolver = "2" +[workspace.package] +version = "0.7.0" +edition = "2021" +license = "MIT" +readme = "README.md" +keywords = ["llm", "rag", "ai", "data", "openai"] +description = "Blazing fast, streaming pipeline library for AI applications" +categories = ["asynchronous"] +repository = "https://github.com/bosun-ai/swiftide-rs" +homepage = "https://swiftide.rs" + [profile.dev.package] insta.opt-level = 3 similar.opt-level = 3 diff --git a/benchmarks/Cargo.toml b/benchmarks/Cargo.toml index a3b14936..00fce76f 100644 --- a/benchmarks/Cargo.toml +++ b/benchmarks/Cargo.toml @@ -1,8 +1,15 @@ [package] name = "benchmarks" -version = "0.0.0" publish = false -edition = "2021" +version.workspace = true +edition.workspace = true +license.workspace = true +readme.workspace = true +keywords.workspace = true +description.workspace = true +categories.workspace = true +repository.workspace = true +homepage.workspace = true [dev-dependencies] tokio = { version = "1.0", features = ["full"] } diff --git a/deny.toml b/deny.toml new file mode 100644 index 00000000..34806df3 --- /dev/null +++ b/deny.toml @@ -0,0 +1,39 @@ +[graph] +all-features = true + +[licenses] +confidence-threshold = 0.8 +allow = [ + "Apache-2.0", + "BSD-2-Clause", + "BSD-3-Clause", + "ISC", + "MIT", + "Unicode-DFS-2016", + "WTFPL", + "MPL-2.0", +] +exceptions = [{ allow = ["OpenSSL"], crate = "ring" }] + +[advisories] +yanked = "deny" + +[bans] +multiple-versions = "allow" + +[sources] +unknown-registry = "deny" +unknown-git = "warn" +allow-registry = ["https://github.com/rust-lang/crates.io-index"] + +[[licenses.clarify]] +crate = "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 }] diff --git a/examples/Cargo.toml b/examples/Cargo.toml index 26020fe5..0a744196 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -1,8 +1,15 @@ [package] name = "examples" -version = "0.0.0" publish = false -edition = "2021" +version.workspace = true +edition.workspace = true +license.workspace = true +readme.workspace = true +keywords.workspace = true +description.workspace = true +categories.workspace = true +repository.workspace = true +homepage.workspace = true [dependencies] tokio = { version = "1.0", features = ["full"] } diff --git a/release-plz.toml b/release-plz.toml index 6103e658..c90de835 100644 --- a/release-plz.toml +++ b/release-plz.toml @@ -1,3 +1,12 @@ [workspace] changelog_path = "./CHANGELOG.md" changelog_config = "cliff.toml" +git_tag_enable = false +git_release_enable = false + +[[package]] +# Only release the main package on github +name = "swiftide" +git_tag_name = "v{{ version }}" +git_tag_enable = true +git_release_enable = true diff --git a/swiftide-core/Cargo.toml b/swiftide-core/Cargo.toml index 62378270..92da1f71 100644 --- a/swiftide-core/Cargo.toml +++ b/swiftide-core/Cargo.toml @@ -1,14 +1,14 @@ [package] name = "swiftide-core" -version = "0.7.0" -edition = "2021" -license = "MIT" -readme = "../README.md" -keywords = ["llm", "rag", "ai", "data", "openai"] -description = "Blazing fast, streaming pipeline library for AI applications" -categories = ["asynchronous"] -repository = "https://github.com/bosun-ai/swiftide-rs" -homepage = "https://swiftide.rs" +version.workspace = true +edition.workspace = true +license.workspace = true +readme.workspace = true +keywords.workspace = true +description.workspace = true +categories.workspace = true +repository.workspace = true +homepage.workspace = true [dependencies] anyhow = { workspace = true } diff --git a/swiftide-indexing/Cargo.toml b/swiftide-indexing/Cargo.toml index b34e4df6..a75d21f7 100644 --- a/swiftide-indexing/Cargo.toml +++ b/swiftide-indexing/Cargo.toml @@ -1,14 +1,14 @@ [package] name = "swiftide-indexing" -version = "0.7.0" -edition = "2021" -license = "MIT" -readme = "../README.md" -keywords = ["llm", "rag", "ai", "data", "openai"] -description = "Blazing fast, streaming pipeline library for AI applications" -categories = ["asynchronous"] -repository = "https://github.com/bosun-ai/swiftide-rs" -homepage = "https://swiftide.rs" +version.workspace = true +edition.workspace = true +license.workspace = true +readme.workspace = true +keywords.workspace = true +description.workspace = true +categories.workspace = true +repository.workspace = true +homepage.workspace = true [dependencies] swiftide-core = { path = "../swiftide-core", version = "0.7" } diff --git a/swiftide-integrations/Cargo.toml b/swiftide-integrations/Cargo.toml index 42cedbce..8c1028bf 100644 --- a/swiftide-integrations/Cargo.toml +++ b/swiftide-integrations/Cargo.toml @@ -1,14 +1,14 @@ [package] name = "swiftide-integrations" -version = "0.7.0" -edition = "2021" -license = "MIT" -readme = "../README.md" -keywords = ["llm", "rag", "ai", "data", "openai"] -description = "Blazing fast, streaming pipeline library for AI applications" -categories = ["asynchronous"] -repository = "https://github.com/bosun-ai/swiftide-rs" -homepage = "https://swiftide.rs" +version.workspace = true +edition.workspace = true +license.workspace = true +readme.workspace = true +keywords.workspace = true +description.workspace = true +categories.workspace = true +repository.workspace = true +homepage.workspace = true [dependencies] swiftide-core = { path = "../swiftide-core", version = "0.7" } diff --git a/swiftide-query/Cargo.toml b/swiftide-query/Cargo.toml index 559065ee..d9dd3225 100644 --- a/swiftide-query/Cargo.toml +++ b/swiftide-query/Cargo.toml @@ -1,14 +1,14 @@ [package] name = "swiftide-query" -version = "0.7.0" -edition = "2021" -license = "MIT" -readme = "../README.md" -keywords = ["llm", "rag", "ai", "data", "openai"] -description = "Blazing fast, streaming pipeline library for AI applications" -categories = ["asynchronous"] -repository = "https://github.com/bosun-ai/swiftide-rs" -homepage = "https://swiftide.rs" +version.workspace = true +edition.workspace = true +license.workspace = true +readme.workspace = true +keywords.workspace = true +description.workspace = true +categories.workspace = true +repository.workspace = true +homepage.workspace = true [dependencies] anyhow = { workspace = true } diff --git a/swiftide-test-utils/Cargo.toml b/swiftide-test-utils/Cargo.toml index 8696382d..5df13155 100644 --- a/swiftide-test-utils/Cargo.toml +++ b/swiftide-test-utils/Cargo.toml @@ -1,7 +1,15 @@ [package] name = "swiftide-test-utils" publish = false -edition = "2021" +version.workspace = true +edition.workspace = true +license.workspace = true +readme.workspace = true +keywords.workspace = true +description.workspace = true +categories.workspace = true +repository.workspace = true +homepage.workspace = true [dependencies] swiftide-core = { path = "../swiftide-core", features = ["test-utils"] } diff --git a/swiftide/Cargo.toml b/swiftide/Cargo.toml index 3de996ca..85b0be67 100644 --- a/swiftide/Cargo.toml +++ b/swiftide/Cargo.toml @@ -1,14 +1,14 @@ [package] name = "swiftide" -version = "0.7.0" -edition = "2021" -license = "MIT" -readme = "../README.md" -keywords = ["llm", "rag", "ai", "data", "openai"] -description = "Blazing fast, streaming pipeline library for AI applications" -categories = ["asynchronous"] -repository = "https://github.com/bosun-ai/swiftide-rs" -homepage = "https://swiftide.rs" +version.workspace = true +edition.workspace = true +license.workspace = true +readme.workspace = true +keywords.workspace = true +description.workspace = true +categories.workspace = true +repository.workspace = true +homepage.workspace = true [badges]