-
Notifications
You must be signed in to change notification settings - Fork 2
/
Cargo.toml
125 lines (114 loc) · 4.13 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
[package]
name = "medea-jason"
version = "0.7.0"
edition = "2021"
rust-version = "1.81"
description = "Client library for Medea media server."
authors = ["Instrumentisto Team <[email protected]>"]
license = "MPL-2.0"
documentation = "https://docs.rs/medea-jason"
homepage = "https://github.com/instrumentisto/medea-jason"
repository = "https://github.com/instrumentisto/medea-jason"
readme = "README.md"
keywords = ["medea", "jason", "webrtc", "client", "browser"]
categories = ["multimedia", "api-bindings", "web-programming", "wasm"]
include = ["/src/", "/build.rs", "/CHANGELOG.md", "/LICENSE.md"]
[workspace]
members = [
"crates/medea-macro",
"crates/medea-reactive",
"mock/control-api",
"proto/client-api",
"proto/control-api",
"e2e",
]
[lib]
crate-type = ["cdylib", "rlib", "staticlib"]
[profile.release]
lto = "fat"
[features]
default = ["console_error_panic_hook", "talc"]
console_error_panic_hook = ["dep:console_error_panic_hook"]
dart-codegen = ["medea-macro/dart-codegen"]
mockable = ["dep:mockall"]
talc = ["dep:talc"]
[dependencies]
async-recursion = "1.1"
async-trait = "0.1"
backoff = { version = "0.4", features = ["futures"] }
bitflags = "2.6"
derivative = "2.2"
derive_more = { version = "1.0", features = ["as_ref", "debug", "deref", "display", "from", "into", "mul"] }
futures = "0.3"
log = "0.4"
medea-client-api-proto = { version = "0.7", path = "proto/client-api" }
medea-macro = { version = "0.3", path = "crates/medea-macro" }
medea-reactive = { version = "0.1", path = "crates/medea-reactive" }
mockall = { version = "0.13", optional = true }
sealed = "0.6"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tracerr = "0.3"
url = "2.5"
[target.'cfg(target_os = "android")'.dependencies]
android_logger = "0.14"
[target.'cfg(any(target_os = "ios", target_os = "linux", target_os = "macos", target_os = "windows"))'.dependencies]
simple_logger = "5.0"
[target.'cfg(not(target_family = "wasm"))'.dependencies]
# TODO: Switch to `dart-sys` once `flutter_rust_bridge` does.
dart-sys = { version = "4.1", package = "dart-sys-fork" }
flutter_rust_bridge = { version = "=2.4.0", features = ["anyhow", "dart-opaque", "rust-async"], default-features = false }
libc = "0.2"
send_wrapper = "0.6"
[target.'cfg(target_family = "wasm")'.dependencies]
backoff = { version = "0.4", features = ["wasm-bindgen"] }
console_error_panic_hook = { version = "0.1", optional = true }
js-sys = "0.3"
talc = { version = "4.4", features = ["lock_api"], default-features = false, optional = true }
wasm-bindgen = "0.2.93"
wasm-bindgen-futures = "0.4.43"
wasm-logger = "0.2"
[target.'cfg(target_family = "wasm")'.dependencies.web-sys]
version = "0.3.70"
features = [
"console",
"ConstrainBooleanParameters",
"ConstrainDomStringParameters",
"ConstrainDoubleRange",
"CloseEvent",
"DisplayMediaStreamConstraints",
"Event", "EventTarget",
"MediaDevices","MediaDeviceInfo", "MediaDeviceKind",
"MediaTrackConstraints", "MediaTrackSettings",
"MediaStream", "MediaStreamConstraints",
"MediaStreamTrack", "MediaStreamTrackState",
"MessageEvent",
"Navigator",
"RtcBundlePolicy",
"RtcConfiguration",
"RtcIceCandidate", "RtcIceCandidateInit",
"RtcIceConnectionState",
"RtcIceServer",
"RtcIceTransportPolicy",
"RtcOfferOptions",
"RtcPeerConnection",
"RtcPeerConnectionIceEvent", "RtcPeerConnectionIceErrorEvent",
"RtcPeerConnectionState",
"RtcRtpCapabilities",
"RtcRtpCodecCapability", "RtcRtpCodecParameters",
"RtcRtpEncodingParameters",
"RtcRtpParameters",
"RtcRtpReceiver", "RtcRtpSender",
"RtcRtpTransceiver", "RtcRtpTransceiverDirection",
"RtcRtpTransceiverInit",
"RtcSdpType",
"RtcSessionDescription", "RtcSessionDescriptionInit",
"RtcStats", "RtcStatsReport",
"RtcTrackEvent",
"WebSocket", "Window",
]
[build-dependencies]
cc = "1.1"
[target.'cfg(target_family = "wasm")'.dev-dependencies]
instant = { version = "0.1", features = ["wasm-bindgen"] }
wasm-bindgen-test = "0.3"