Skip to content

Commit e75c85e

Browse files
Daniel SalinasDaniel Salinas
authored andcommitted
Add web target for ffi
1 parent e11b413 commit e75c85e

File tree

5 files changed

+41
-1
lines changed

5 files changed

+41
-1
lines changed

Cargo.lock

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ members = [
33
"benchmarks",
44
"bindings/matrix-sdk-crypto-ffi",
55
"bindings/matrix-sdk-ffi",
6+
"bindings/matrix-sdk-ffi-web",
67
"crates/*",
78
"examples/*",
89
"labs/*",
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[package]
2+
name = "matrix-sdk-ffi-web"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
[dependencies]
7+
matrix-sdk-ffi = { path = "../matrix-sdk-ffi/", features = ["js"] }
8+
uniffi = { workspace = true }
9+
10+
[build-dependencies]
11+
uniffi = { workspace = true, features = ["build"] }
12+
13+
[dev-dependencies]
14+
uniffi = { workspace = true, features = ["bindgen-tests"] }
15+
16+
[lib]
17+
crate-type = ["lib", "staticlib", "cdylib"]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pub use matrix_sdk_ffi;

bindings/matrix-sdk-ffi/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ publish = false
1414
release = true
1515

1616
[lib]
17-
crate-type = ["cdylib", "staticlib"]
17+
crate-type = ["lib", "cdylib", "staticlib"]
1818

1919
[features]
2020
default = ["matrix-sdk-ui/unstable-msc4274"]

0 commit comments

Comments
 (0)