mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-18 17:14:20 +01:00
core: Remove dependencies to extensions
We don't want to publish all extensions on crates.io, at least not for now.
This commit is contained in:
21
Cargo.lock
generated
21
Cargo.lock
generated
@@ -1489,12 +1489,6 @@ dependencies = [
|
|||||||
"libc",
|
"libc",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "ipnetwork"
|
|
||||||
version = "0.21.1"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "cf370abdafd54d13e54a620e8c3e1145f28e46cc9d704bc6d94414559df41763"
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "is-terminal"
|
name = "is-terminal"
|
||||||
version = "0.4.16"
|
version = "0.4.16"
|
||||||
@@ -1780,15 +1774,6 @@ dependencies = [
|
|||||||
"turso_ext",
|
"turso_ext",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "limbo_ipaddr"
|
|
||||||
version = "0.1.0-pre.2"
|
|
||||||
dependencies = [
|
|
||||||
"ipnetwork",
|
|
||||||
"mimalloc",
|
|
||||||
"turso_ext",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "limbo_percentile"
|
name = "limbo_percentile"
|
||||||
version = "0.1.0-pre.2"
|
version = "0.1.0-pre.2"
|
||||||
@@ -3699,12 +3684,6 @@ dependencies = [
|
|||||||
"libc",
|
"libc",
|
||||||
"libloading",
|
"libloading",
|
||||||
"libm",
|
"libm",
|
||||||
"limbo_crypto",
|
|
||||||
"limbo_csv",
|
|
||||||
"limbo_ipaddr",
|
|
||||||
"limbo_percentile",
|
|
||||||
"limbo_regexp",
|
|
||||||
"limbo_series",
|
|
||||||
"lru",
|
"lru",
|
||||||
"miette",
|
"miette",
|
||||||
"mimalloc",
|
"mimalloc",
|
||||||
|
|||||||
@@ -15,20 +15,13 @@ path = "lib.rs"
|
|||||||
|
|
||||||
[features]
|
[features]
|
||||||
antithesis = ["dep:antithesis_sdk"]
|
antithesis = ["dep:antithesis_sdk"]
|
||||||
default = ["fs", "uuid", "time", "json", "static", "series"]
|
default = ["fs", "uuid", "time", "json"]
|
||||||
fs = ["turso_ext/vfs"]
|
fs = ["turso_ext/vfs"]
|
||||||
json = []
|
json = []
|
||||||
uuid = ["dep:uuid"]
|
uuid = ["dep:uuid"]
|
||||||
io_uring = ["dep:io-uring", "rustix/io_uring", "dep:libc"]
|
io_uring = ["dep:io-uring", "rustix/io_uring", "dep:libc"]
|
||||||
percentile = ["limbo_percentile/static"]
|
|
||||||
regexp = ["limbo_regexp/static"]
|
|
||||||
crypto = ["limbo_crypto/static"]
|
|
||||||
series = ["limbo_series/static"]
|
|
||||||
ipaddr = ["limbo_ipaddr/static"]
|
|
||||||
static = ["turso_ext/static"]
|
|
||||||
time = []
|
time = []
|
||||||
fuzz = []
|
fuzz = []
|
||||||
csv = ["limbo_csv/static"]
|
|
||||||
omit_autovacuum = []
|
omit_autovacuum = []
|
||||||
simulator = ["fuzz", "serde"]
|
simulator = ["fuzz", "serde"]
|
||||||
serde = ["dep:serde"]
|
serde = ["dep:serde"]
|
||||||
@@ -63,12 +56,6 @@ julian_day_converter = "0.4.5"
|
|||||||
rand = "0.8.5"
|
rand = "0.8.5"
|
||||||
libm = "0.2"
|
libm = "0.2"
|
||||||
turso_macros = { workspace = true }
|
turso_macros = { workspace = true }
|
||||||
limbo_regexp = { workspace = true, optional = true, features = ["static"] }
|
|
||||||
limbo_percentile = { workspace = true, optional = true, features = ["static"] }
|
|
||||||
limbo_crypto = { workspace = true, optional = true, features = ["static"] }
|
|
||||||
limbo_series = { workspace = true, optional = true, features = ["static"] }
|
|
||||||
limbo_ipaddr = { workspace = true, optional = true, features = ["static"] }
|
|
||||||
limbo_csv = { workspace = true, optional = true, features = ["static"] }
|
|
||||||
miette = "7.6.0"
|
miette = "7.6.0"
|
||||||
strum = { workspace = true }
|
strum = { workspace = true }
|
||||||
parking_lot = "0.12.3"
|
parking_lot = "0.12.3"
|
||||||
|
|||||||
@@ -174,32 +174,6 @@ impl Connection {
|
|||||||
let mut ext_api = self.build_turso_ext();
|
let mut ext_api = self.build_turso_ext();
|
||||||
#[cfg(feature = "uuid")]
|
#[cfg(feature = "uuid")]
|
||||||
crate::uuid::register_extension(&mut ext_api);
|
crate::uuid::register_extension(&mut ext_api);
|
||||||
#[cfg(feature = "percentile")]
|
|
||||||
if unsafe { !limbo_percentile::register_extension_static(&mut ext_api).is_ok() } {
|
|
||||||
return Err("Failed to register percentile extension".to_string());
|
|
||||||
}
|
|
||||||
#[cfg(feature = "regexp")]
|
|
||||||
if unsafe { !limbo_regexp::register_extension_static(&mut ext_api).is_ok() } {
|
|
||||||
return Err("Failed to register regexp extension".to_string());
|
|
||||||
}
|
|
||||||
#[cfg(feature = "time")]
|
|
||||||
crate::time::register_extension(&mut ext_api);
|
|
||||||
#[cfg(feature = "crypto")]
|
|
||||||
if unsafe { !limbo_crypto::register_extension_static(&mut ext_api).is_ok() } {
|
|
||||||
return Err("Failed to register crypto extension".to_string());
|
|
||||||
}
|
|
||||||
#[cfg(feature = "series")]
|
|
||||||
if unsafe { !limbo_series::register_extension_static(&mut ext_api).is_ok() } {
|
|
||||||
return Err("Failed to register series extension".to_string());
|
|
||||||
}
|
|
||||||
#[cfg(feature = "ipaddr")]
|
|
||||||
if unsafe { !limbo_ipaddr::register_extension_static(&mut ext_api).is_ok() } {
|
|
||||||
return Err("Failed to register ipaddr extension".to_string());
|
|
||||||
}
|
|
||||||
#[cfg(feature = "csv")]
|
|
||||||
if unsafe { !limbo_csv::register_extension_static(&mut ext_api).is_ok() } {
|
|
||||||
return Err("Failed to register csv extension".to_string());
|
|
||||||
}
|
|
||||||
#[cfg(feature = "fs")]
|
#[cfg(feature = "fs")]
|
||||||
{
|
{
|
||||||
let vfslist = add_builtin_vfs_extensions(Some(ext_api)).map_err(|e| e.to_string())?;
|
let vfslist = add_builtin_vfs_extensions(Some(ext_api)).map_err(|e| e.to_string())?;
|
||||||
|
|||||||
@@ -2,12 +2,6 @@
|
|||||||
|
|
||||||
cargo publish -p turso_macros
|
cargo publish -p turso_macros
|
||||||
cargo publish -p turso_ext
|
cargo publish -p turso_ext
|
||||||
cargo publish -p limbo_crypto
|
|
||||||
cargo publish -p limbo_csv
|
|
||||||
cargo publish -p limbo_percentile
|
|
||||||
cargo publish -p limbo_regexp
|
|
||||||
cargo publish -p limbo_series
|
|
||||||
cargo publish -p limbo_ipaddr
|
|
||||||
cargo publish -p turso_sqlite3_parser
|
cargo publish -p turso_sqlite3_parser
|
||||||
cargo publish -p turso_core
|
cargo publish -p turso_core
|
||||||
cargo publish -p limbo
|
cargo publish -p limbo
|
||||||
|
|||||||
Reference in New Issue
Block a user