diff --git a/Cargo.lock b/Cargo.lock index 749c8fb5f..b57e244cd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1059,7 +1059,6 @@ dependencies = [ [[package]] name = "diesel-wasm-sqlite" version = "0.0.1" -source = "git+https://github.com/xmtp/libxmtp?branch=wasm-backend#9f4ffe40850c21a012f50ff953ced140e5f441a1" dependencies = [ "diesel", "diesel_derives 2.2.2", diff --git a/Cargo.toml b/Cargo.toml index bff6f4dcd..d28c74d5b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -74,6 +74,9 @@ xmtp_id = { path = "xmtp_id" } xmtp_mls = { path = "xmtp_mls" } xmtp_proto = { path = "xmtp_proto" } +[profile.release] +opt-level = "s" + # patch needed until some items # are made public for third-party dependencies: https://github.com/diesel-rs/diesel/pull/4236 # (cfg-specific patche support does not exist) @@ -81,4 +84,5 @@ xmtp_proto = { path = "xmtp_proto" } diesel = { git = "https://github.com/xmtp/diesel", branch = "insipx/sqlite-replace-ignore-pub" } diesel_derives = { git = "https://github.com/xmtp/diesel", branch = "insipx/sqlite-replace-ignore-pub" } diesel_migrations = { git = "https://github.com/xmtp/diesel", branch = "insipx/sqlite-replace-ignore-pub" } -diesel-wasm-sqlite = { path = "../diesel-wasm-sqlite" } +diesel-wasm-sqlite = { path = "./diesel-wasm-sqlite" } + diff --git a/bindings_wasm/Cargo.toml b/bindings_wasm/Cargo.toml index af6e436de..7f5f70e08 100644 --- a/bindings_wasm/Cargo.toml +++ b/bindings_wasm/Cargo.toml @@ -33,3 +33,7 @@ diesel = { git = "https://github.com/xmtp/diesel", branch = "insipx/sqlite-repla diesel_derives = { git = "https://github.com/xmtp/diesel", branch = "insipx/sqlite-replace-ignore-pub" } diesel_migrations = { git = "https://github.com/xmtp/diesel", branch = "insipx/sqlite-replace-ignore-pub" } diesel-wasm-sqlite = { path = "../diesel-wasm-sqlite" } + +[build] +target = "wasm32-unknown-unknown" + diff --git a/xmtp_api_http/Cargo.toml b/xmtp_api_http/Cargo.toml index e60ad0bab..cf229dd10 100644 --- a/xmtp_api_http/Cargo.toml +++ b/xmtp_api_http/Cargo.toml @@ -28,6 +28,4 @@ tokio = { workspace = true, features = ["macros", "rt-multi-thread", "time"] } tokio = { workspace = true, features = ["macros", "time"] } wasm-bindgen-test.workspace = true -[profile.release] -opt-level = "s"