release: v2.4.0 oracle journal language values

Expose foreign.oracle_journal/replay_check as values, bump CLI/ext/wasm to
2.4.0, and fix notebook OnceLock wait for MSRV 1.81 so EK can compile.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-11-06 15:09:34 +08:00
1 parent 8f1010f967
commit a87c2154ff
10 files changed
+51 -11

No files matched your search

+7 -1
View File
@@ -19,7 +19,13 @@ struct ApiSession {
}
impl ApiSession {
fn mutex(&self) -> Result<&Mutex<DocumentSession>, String> {
self.document.wait().as_ref().map_err(Clone::clone)
// `OnceLock::wait` needs Rust ≥1.84; MSRV is 1.81 — poll until init.
loop {
match self.document.get() {
Some(slot) => return slot.as_ref().map_err(Clone::clone),
None => std::thread::yield_now(),
}
}
}
fn lock(&self) -> Result<MutexGuard<'_, DocumentSession>, String> {
let guard = self.mutex()?.lock().map_err(|_| "session lock poisoned".to_string())?;