#sip #networking #basic #client #capabilities #rcs #msrp

rust-rcs-core

Core libraries that provide basic RCS capabilities (SIP, MSRP, etc.)

4 releases

0.3.1 Sep 14, 2024
0.3.0 Dec 27, 2023
0.1.3 Oct 20, 2023
0.1.0 Jul 4, 2023

#967 in Network programming

Download history 29/week @ 2024-07-27 1/week @ 2024-08-03 177/week @ 2024-09-14 15/week @ 2024-09-21 18/week @ 2024-09-28 9/week @ 2024-10-05 4/week @ 2024-10-12

161 downloads per month
Used in rust-rcs-client

Apache-2.0

1MB
17K SLoC

rust-rcs-core

Core libraries that provide basic RCS capabilities.

This library itself should prove a suitable base for building a SIP/RCS client. It is used by rust-rcs-client to create a functional RCS client under areas that had neccessary network support.

What's Missing

SIP sessions and MSRP had not gone through any testing and we should re-work FFI functions since they are heavily Android-biased now.

Also, some code are half way through the sync-async conversion and require clean ups.

FAQ

Q: Why are you re-writing so many basic things like HTTP, why not use genuine, proven Libraries like reqwest?

A: Well, the GBA algorithm dictates that we know the cipher-suite used in the underlying ssl connection before calculating the credentials for the Authorization header, this function I could not find in any of the popular HTTP libraries at the time of writing.

Q: Why use Rust? Isn't Java a more suitable choice if your code is going to run mostly on mobile devices?

A: First of all, I had already written an Android RCS library for my company but that is proprietary. Secondly, Rust is fun. And it forces you to be clear on what you are writing, which is perfect for protocols and stuff.

Note

Part of the code were written when I was fairly new with the Rust programming language. I expect those would need serious overhaul to look decent.

Dependencies

~29–40MB
~869K SLoC