From 4d5df107642580053f06503d8209c50a65e54a70 Mon Sep 17 00:00:00 2001 From: Emile Fugulin Date: Fri, 2 Feb 2024 19:31:31 -0500 Subject: [PATCH 1/2] Add build features --- Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 5e89f27..5f5c630 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,5 +13,10 @@ license = "MIT/Apache-2.0" sqlite-loadable = "0.0.6-alpha.6" regex = "1" +[features] +default = ["dynamic"] +dynamic = ["sqlite-loadable/dynamic"] +static = ["sqlite-loadable/static"] + [lib] crate-type=["lib", "cdylib", "staticlib"] From e472b0fc69e269a4accb9684deff00bd6a958645 Mon Sep 17 00:00:00 2001 From: Emile Fugulin Date: Fri, 2 Feb 2024 19:35:24 -0500 Subject: [PATCH 2/2] Disable default feature --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 5f5c630..5b555b7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ keywords = ["sqlite", "sqlite-extension"] license = "MIT/Apache-2.0" [dependencies] -sqlite-loadable = "0.0.6-alpha.6" +sqlite-loadable = {version = "0.0.6-alpha.6", default-features = false} regex = "1" [features]