π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
ente-wasm 1
Manav Rathi3bc67e1d20e1
diff --git a/rust/bindings/wasm/Cargo.lock b/rust/bindings/wasm/Cargo.locknew file mode 100644index 0000000000..ebbcb3ffea--- /dev/null+++ b/rust/bindings/wasm/Cargo.lock@@ -0,0 +1,119 @@+# This file is automatically @generated by Cargo.+# It is not intended for manual editing.+version = 4++[[package]]+name = "bumpalo"+version = "3.19.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "46c5e41b57b8bba42a04676d81cb89e9ee8e859a1a66f80a5a72e1cb76b34d43"++[[package]]+name = "cfg-if"+version = "1.0.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"++[[package]]+name = "ente-core"+version = "0.0.1"++[[package]]+name = "ente-wasm"+version = "0.0.1"+dependencies = [+ "ente-core",+ "wasm-bindgen",+]++[[package]]+name = "once_cell"+version = "1.21.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"++[[package]]+name = "proc-macro2"+version = "1.0.103"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5ee95bc4ef87b8d5ba32e8b7714ccc834865276eab0aed5c9958d00ec45f49e8"+dependencies = [+ "unicode-ident",+]++[[package]]+name = "quote"+version = "1.0.42"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a338cc41d27e6cc6dce6cefc13a0729dfbb81c262b1f519331575dd80ef3067f"+dependencies = [+ "proc-macro2",+]++[[package]]+name = "rustversion"+version = "1.0.22"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"++[[package]]+name = "syn"+version = "2.0.111"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "390cc9a294ab71bdb1aa2e99d13be9c753cd2d7bd6560c77118597410c4d2e87"+dependencies = [+ "proc-macro2",+ "quote",+ "unicode-ident",+]++[[package]]+name = "unicode-ident"+version = "1.0.22"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9312f7c4f6ff9069b165498234ce8be658059c6728633667c526e27dc2cf1df5"++[[package]]+name = "wasm-bindgen"+version = "0.2.106"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0d759f433fa64a2d763d1340820e46e111a7a5ab75f993d1852d70b03dbb80fd"+dependencies = [+ "cfg-if",+ "once_cell",+ "rustversion",+ "wasm-bindgen-macro",+ "wasm-bindgen-shared",+]++[[package]]+name = "wasm-bindgen-macro"+version = "0.2.106"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "48cb0d2638f8baedbc542ed444afc0644a29166f1595371af4fecf8ce1e7eeb3"+dependencies = [+ "quote",+ "wasm-bindgen-macro-support",+]++[[package]]+name = "wasm-bindgen-macro-support"+version = "0.2.106"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cefb59d5cd5f92d9dcf80e4683949f15ca4b511f4ac0a6e14d4e1ac60c6ecd40"+dependencies = [+ "bumpalo",+ "proc-macro2",+ "quote",+ "syn",+ "wasm-bindgen-shared",+]++[[package]]+name = "wasm-bindgen-shared"+version = "0.2.106"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cbc538057e648b67f72a982e708d485b2efa771e1ac05fec311f9f63e5800db4"+dependencies = [+ "unicode-ident",+]diff --git a/rust/bindings/wasm/Cargo.toml b/rust/bindings/wasm/Cargo.tomlnew file mode 100644index 0000000000..7a19f64ad9--- /dev/null+++ b/rust/bindings/wasm/Cargo.toml@@ -0,0 +1,11 @@+[package]+name = "ente-wasm"+version = "0.0.1"+edition = "2024"++[lib]+crate-type = ["cdylib"]++[dependencies]+ente-core = { path = "../../core" }+wasm-bindgen = "0.2"diff --git a/rust/bindings/wasm/src/lib.rs b/rust/bindings/wasm/src/lib.rsnew file mode 100644index 0000000000..50e6250716--- /dev/null+++ b/rust/bindings/wasm/src/lib.rs@@ -0,0 +1,6 @@+use wasm_bindgen::prelude::*;++#[wasm_bindgen]+pub fn file_download_url(api_base_url: &str, file_id: i64) -> String {+ ente_core::urls::file_download_url(api_base_url, file_id)+}