From 7906397c64fffa5513a0bf651d107119ac163673 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Wed, 24 May 2023 18:14:54 -0300 Subject: [PATCH] fix(ci): enable sqlite feature when publishing the sql plugin --- .changes/config.json | 23 ++++++++++++++++++++++- plugins/sql/Cargo.toml | 3 +++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/.changes/config.json b/.changes/config.json index 0be8dc7f..212c3df5 100644 --- a/.changes/config.json +++ b/.changes/config.json @@ -231,7 +231,28 @@ "sql": { "path": "./plugins/sql", - "manager": "rust" + "manager": "rust", + "publish": [ + { + "command": "cargo package --no-verify", + "dryRunCommand": true + }, + { + "command": "echo '
\n

Cargo Publish

\n\n```'", + "dryRunCommand": true, + "pipe": true + }, + { + "command": "cargo publish --features sqlite", + "dryRunCommand": "cargo publish --features sqlite --dry-run", + "pipe": true + }, + { + "command": "echo '```\n\n
\n'", + "dryRunCommand": true, + "pipe": true + } + ] }, "sql-js": { "path": "./plugins/sql", diff --git a/plugins/sql/Cargo.toml b/plugins/sql/Cargo.toml index a4ddf0c2..c08a48ff 100644 --- a/plugins/sql/Cargo.toml +++ b/plugins/sql/Cargo.toml @@ -7,6 +7,9 @@ license = { workspace = true } edition = { workspace = true } rust-version = { workspace = true } +[package.metadata.docs.rs] +features = [ "sqlite" ] + [dependencies] serde = { workspace = true } serde_json = { workspace = true }