feat(release): add static browser builds
This commit is contained in:
1 parent
d9a6655fd9
commit
2bfbe67f47
7 files changed
+323
-5
No files matched your search
@@ -32,10 +32,11 @@ test = false
|
||||
bench = false
|
||||
|
||||
[features]
|
||||
default = ["duckdb-bundled", "mq-admin", "sqlite-sqlcipher"]
|
||||
default = ["duckdb-bundled", "mq-admin", "sqlite-sqlcipher", "system-fonts"]
|
||||
duckdb-bundled = ["duckdb/bundled", "duckdb/parquet"]
|
||||
mq-admin = []
|
||||
sqlite-sqlcipher = ["rusqlite/bundled-sqlcipher-vendored-openssl"]
|
||||
system-fonts = ["font-kit"]
|
||||
|
||||
[dependencies]
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
@@ -88,7 +89,7 @@ argon2 = "0.5"
|
||||
sha2 = "0.10"
|
||||
async-trait = "0.1"
|
||||
bytes = "1"
|
||||
font-kit = "0.14.3"
|
||||
font-kit = { version = "0.14.3", optional = true }
|
||||
zip = { version = "4", default-features = false, features = ["deflate"] }
|
||||
sysinfo = { version = "0.32", features = ["system"] }
|
||||
tempfile = "3"
|
||||
@@ -318,6 +318,7 @@ pub fn uninstall_jdbc_plugin(plugins_root: &Path) -> Result<JdbcPluginStatus, St
|
||||
|
||||
// ---- System Fonts ----
|
||||
|
||||
#[cfg(feature = "system-fonts")]
|
||||
pub fn list_system_fonts() -> Vec<String> {
|
||||
let source = font_kit::source::SystemSource::new();
|
||||
match source.all_families() {
|
||||
@@ -335,6 +336,11 @@ pub fn list_system_fonts() -> Vec<String> {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "system-fonts"))]
|
||||
pub fn list_system_fonts() -> Vec<String> {
|
||||
vec![]
|
||||
}
|
||||
|
||||
// ---- Internal helpers ----
|
||||
|
||||
fn jdbc_drivers_dir(plugins_root: &Path) -> PathBuf {
|
||||
|
||||
Reference in new issue
Block a user