Skip to content

Commit cd368ce

Browse files
authored
Merge pull request #1617 from tursodatabase/bump-rust
bump rust version, fix warnings
2 parents 57efa92 + 7dacca2 commit cd368ce

File tree

13 files changed

+21
-17
lines changed

13 files changed

+21
-17
lines changed

bindings/wasm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ crate-type = ["cdylib"]
88

99
[dependencies]
1010
js-sys = "0.3"
11-
libsql = { path = "../../libsql", default_features = false, features = ["core"] }
11+
libsql = { path = "../../libsql", default-features = false, features = ["core"] }
1212
wasm-bindgen = "0.2"

libsql-ffi/Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,10 @@ cc = "1.0"
2121
session = []
2222
wasmtime-bindings = ["dep:libsql-wasmtime-bindings"]
2323
multiple-ciphers = []
24+
bundled-sqlcipher = []
25+
bundled-sqlcipher-vendored-openssl = []
26+
with-asan = []
27+
wasm32-wasi-vfs = []
28+
unlock_notify = []
29+
preupdate_hook = []
30+
sqlcipher = []

libsql-ffi/src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ pub use libsql_wasm::{
1313
libsql_compile_wasm_module, libsql_free_wasm_module, libsql_run_wasm, libsql_wasm_engine_new,
1414
};
1515

16-
include!(concat!(env!("OUT_DIR"), "/bindgen.rs"));
16+
pub use bindgen::*;
17+
mod bindgen {
18+
#![allow(dead_code)]
19+
include!(concat!(env!("OUT_DIR"), "/bindgen.rs"));
20+
}
1721

1822
#[must_use]
1923
pub fn SQLITE_STATIC() -> sqlite3_destructor_type {

libsql-server/src/http/user/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ mod types;
99
#[macro_use]
1010
pub mod timing;
1111

12-
use std::path::Path;
1312
use std::sync::Arc;
1413

1514
use anyhow::Context;
@@ -257,7 +256,6 @@ pub struct UserApi<A, P, S> {
257256
pub enable_console: bool,
258257
pub self_url: Option<String>,
259258
pub primary_url: Option<String>,
260-
pub path: Arc<Path>,
261259
pub shutdown: Arc<Notify>,
262260
}
263261

libsql-server/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ struct Services<A, P, S, C> {
180180
disable_default_namespace: bool,
181181
db_config: DbConfig,
182182
user_auth_strategy: Auth,
183-
path: Arc<Path>,
184183
shutdown: Arc<Notify>,
185184
}
186185

@@ -206,7 +205,6 @@ where
206205
enable_console: self.user_api_config.enable_http_console,
207206
self_url: self.user_api_config.self_url,
208207
primary_url: self.user_api_config.primary_url,
209-
path: self.path.clone(),
210208
shutdown: self.shutdown.clone(),
211209
};
212210

@@ -388,7 +386,6 @@ where
388386
disable_default_namespace: self.disable_default_namespace,
389387
db_config: self.db_config,
390388
user_auth_strategy,
391-
path: self.path.clone(),
392389
shutdown,
393390
}
394391
}

libsql-server/src/namespace/fork.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@ use crate::{BLOCKING_RT, LIBSQL_PAGE_SIZE};
1919

2020
use super::broadcasters::BroadcasterHandle;
2121
use super::meta_store::MetaStoreHandle;
22-
use super::{
23-
Namespace, NamespaceBottomlessDbId, NamespaceConfig, NamespaceName, NamespaceStore,
24-
RestoreOption,
25-
};
22+
use super::{Namespace, NamespaceConfig, NamespaceName, NamespaceStore, RestoreOption};
2623

2724
type Result<T> = crate::Result<T, ForkError>;
2825

@@ -63,7 +60,6 @@ pub struct ForkTask<'a> {
6360
pub to_namespace: NamespaceName,
6461
pub to_config: MetaStoreHandle,
6562
pub restore_to: Option<PointInTimeRestore>,
66-
pub bottomless_db_id: NamespaceBottomlessDbId,
6763
pub ns_config: &'a NamespaceConfig,
6864
pub resolve_attach: ResolveNamespacePathFn,
6965
pub store: NamespaceStore,

libsql-server/src/namespace/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,6 @@ impl Namespace {
694694
to_namespace: to_ns.clone(),
695695
logger,
696696
restore_to,
697-
bottomless_db_id,
698697
to_config,
699698
ns_config,
700699
resolve_attach,

libsql-sys/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ pub mod ffi {
66
use zerocopy::byteorder::big_endian::{U16 as bu16, U32 as bu32, U64 as bu64};
77

88
/// Patched database header file, in use by libsql
9+
#[allow(dead_code)] // <- false positive
910
#[repr(C)]
1011
#[derive(Clone, Copy, zerocopy::FromBytes, zerocopy::FromZeroes, zerocopy::AsBytes, Debug)]
1112
pub struct Sqlite3DbHeader {

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
22
profile = "default"
3-
channel = "1.78.0"
3+
channel = "1.80.0"

vendored/rusqlite/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ extra_check = []
6565
modern_sqlite = []
6666
# Build bundled sqlite with -fsanitize=address
6767
column_decltype = []
68+
unlock_notify = []
69+
bundled = []
6870

6971
# Helper feature for enabling most non-build-related optional features
7072
# or dependencies (except `session`). This is useful for running tests / clippy

0 commit comments

Comments
 (0)