Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion crates/atlas-embed/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,11 @@ candle-core = "0.11.0"
candle-nn = "0.11.0"
candle-transformers = "0.11.0"
serde_json = "1.0.150"
tokenizers = "0.23.1"
# `esaxx_fast` (on by default) pulls in `esaxx-rs`'s C++ suffix-array backend,
# whose build.rs hardcodes a static CRT (`.static_crt(true)`) on every
# platform. That conflicts with the rest of the binary's dynamic CRT (notably
# `cxx`, pulled in via `usearch`) and fails MSVC linking with LNK2038 on
# Windows. It only speeds up *training* a Unigram tokenizer (esaxx-rs still
# has a pure-Rust fallback); loading/running pretrained tokenizers is
# unaffected, so it's safe to drop.
tokenizers = { version = "0.23.1", default-features = false, features = ["progressbar", "onig"] }
3 changes: 0 additions & 3 deletions src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2,831 changes: 2,831 additions & 0 deletions src-tauri/gen/schemas/windows-schema.json

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions src-tauri/src/commands/browser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,10 @@ pub fn browser_embed_create(
let id_started = id.clone();
let id_finished = id.clone();

// `WebviewBuilder` (unlike `WebviewWindowBuilder`) has no `.visible()`
// knob — the child webview is created shown, then hidden immediately
// below to match the "initially hidden" contract callers rely on.
let builder = tauri::webview::WebviewBuilder::new(&label, WebviewUrl::External(parsed))
.visible(false)
.data_directory(profile)
.on_page_load(move |webview, payload| {
let url = payload.url().to_string();
Expand All @@ -273,13 +275,14 @@ pub fn browser_embed_create(
}
});

window
let webview = window
.add_child(
builder,
Position::Logical(LogicalPosition::new(rect.x, rect.y)),
Size::Logical(LogicalSize::new(rect.width.max(1.0), rect.height.max(1.0))),
)
.map_err(|e| format!("failed to embed browser webview: {e}"))?;
let _ = webview.hide();

Ok(())
}
Expand Down
Loading
Loading