Skip to content

Commit 035c611

Browse files
committed
Update deps, tidying
1 parent 0eff415 commit 035c611

File tree

5 files changed

+19
-13
lines changed

5 files changed

+19
-13
lines changed

Cargo.lock

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name = "janus-plugin-sfu"
33
description = "Janus SFU for game networking."
44
version = "0.1.0"
55
authors = ["Marshall Quander <marshall@quander.me>"]
6+
repository = "https://github.com/mozilla/janus-plugin-sfu"
67
license = "MPL-2.0"
78
publish = false
89

@@ -11,7 +12,7 @@ crate_type = ["cdylib"]
1112

1213
[dependencies]
1314
atom = "0.3"
14-
janus-plugin = { version = "0.8.0", features = ["refcount"] }
15+
janus-plugin = { version = "0.9.0", features = ["refcount"] }
1516
jsonwebtoken = "4.0"
1617
lazy_static = "1.0"
1718
serde = "1.0"

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ This plugin should be compatible with any OS that can run Janus; that includes L
2222

2323
This one doesn't have all of the features of janus_videoroom yet, but it supports data channels. It's designed specifically for situations where video is not relevant but one needs multicasted audio and data.
2424

25+
## Dependencies
26+
27+
```
28+
$ sudo apt install libjansson-dev
29+
```
30+
2531
## Building
2632

2733
```

rustfmt.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
max_width = 140
2-
fn_call_width = 100
32
reorder_imports = true
4-
reorder_imported_names = true
3+
reorder_imported_names = true

src/lib.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ mod auth;
1818
use atom::AtomSetOnce;
1919
use messages::{RoomId, UserId};
2020
use auth::UserToken;
21-
use janus::{JanusError, JanssonDecodingFlags, JanssonEncodingFlags, JanssonValue, Plugin, PluginCallbacks, PluginMetadata, PluginResult, PluginSession, RawPluginResult, RawJanssonValue};
21+
use janus::{JanusError, JanssonDecodingFlags, JanssonEncodingFlags, JanssonValue, Plugin, PluginCallbacks, LibraryMetadata, PluginResult, PluginSession, RawPluginResult, RawJanssonValue};
2222
use janus::sdp::{AudioCodec, MediaDirection, OfferAnswerParameters, Sdp, VideoCodec};
2323
use messages::{JsepKind, MessageKind, OptionalField, Subscription};
2424
use serde_json::Value as JsonValue;
@@ -575,8 +575,8 @@ extern "C" fn handle_message(handle: *mut PluginSession, transaction: *mut c_cha
575575
let msg = RawMessage {
576576
from: Arc::downgrade(&sess),
577577
txn: TransactionId(transaction),
578-
msg: unsafe { JanssonValue::new(message) },
579-
jsep: unsafe { JanssonValue::new(jsep) }
578+
msg: unsafe { JanssonValue::from_raw(message) },
579+
jsep: unsafe { JanssonValue::from_raw(jsep) }
580580
};
581581
STATE.message_channel.get().unwrap().send(msg).ok();
582582
PluginResult::ok_wait(Some(c_str!("Processing.")))
@@ -587,7 +587,7 @@ extern "C" fn handle_message(handle: *mut PluginSession, transaction: *mut c_cha
587587
}
588588

589589
const PLUGIN: Plugin = build_plugin!(
590-
PluginMetadata {
590+
LibraryMetadata {
591591
api_version: 9,
592592
version: 1,
593593
name: c_str!("Janus SFU plugin"),

0 commit comments

Comments
 (0)