Made it compile again

This commit is contained in:
iaphetes 2025-05-11 22:05:10 +02:00
parent d08de3d2b4
commit a059adbd34
4 changed files with 1030 additions and 1240 deletions

View file

@ -1,3 +1 @@
[target.x86_64-unknown-linux-gnu]
linker = "clang"
rustflags = ["-C", "link-arg=-fuse-ld=mold"]

2240
src-tauri/Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -1,4 +1,3 @@
cargo-features = ["codegen-backend"]
[package] [package]
name = "apographe" name = "apographe"
version = "0.1.0" version = "0.1.0"
@ -20,21 +19,22 @@ tauri-build = { version = "2", features = [] }
[dependencies] [dependencies]
tauri = { version = "2", features = ["protocol-asset", "unstable"] } tauri = { version = "2", features = ["protocol-asset", "unstable"] }
tauri-plugin-shell = "2" tauri-plugin-shell = "2"
serde = { version = "1", features = ["derive"] } tauri-plugin-dialog = "2"
serde_json = "1"
comrak = "0.29.0"
tauri-plugin-fs = "2" tauri-plugin-fs = "2"
tauri-plugin-log = "2" tauri-plugin-log = "2"
shellexpand = "3.1.0"
html_tag = "0.1.3" serde = { version = "1", features = ["derive"] }
serde_json = "1"
comrak = { version = "0.39.0", features = ["bon", "cli"], default-features = false }
shellexpand = "3"
html_tag = "0.1"
fuzzy-matcher = "0.3" fuzzy-matcher = "0.3"
sqlx = { version = "0.6.2", features = ["runtime-tokio-native-tls", "sqlite"] } sqlx = { version = "0.8", features = ["runtime-tokio-native-tls", "sqlite"] }
confy = "0.6.1" confy = "0.6"
tauri-plugin-dialog = "2" diff-match-patch-rs = "0.5"
diff-match-patch-rs = "0.4.1"
rand = "0.9" rand = "0.9"
futures = "0.3.31" futures = "0.3"
# [profile.dev] # [profile.dev]
# codegen-backend = "cranelift" # codegen-backend = "cranelift"

View file

@ -25,7 +25,7 @@ fn compare_content(old_content: &str, new_content: &str) -> Result<String, Error
pub async fn save_file(app_handle: tauri::AppHandle, content: String) { pub async fn save_file(app_handle: tauri::AppHandle, content: String) {
if let Some(path) = get_open_file_path(app_handle.clone()) { if let Some(path) = get_open_file_path(app_handle.clone()) {
if let Ok(file_content) = load_file(app_handle, path).await { if let Ok(file_content) = load_file(app_handle, path).await {
store_diff(&app_handle, path, file_name, diff); // store_diff(&app_handle, &path, file_name, diff);
println!("{:?}", compare_content(&file_content, &content)); println!("{:?}", compare_content(&file_content, &content));
} }
} }