WeChat's cross-platform mobile networking and logging component (STN, Xlog)
open sourceMITfree
Mars is the cross-platform infrastructure component WeChat's mobile team built and released under the MIT license (some bundled third-party parts carry their own licences). Its parts are comm (sockets, threads, message queues and coroutines), STN (a signaling network component for small, frequent transfers on mobile networks, with low power and traffic use), SDT (network detection) and Xlog (a high-performance, reliable log component). It builds for Android, iOS, macOS and Windows; Android apps add it from Maven as mars-wrapper, mars-core or mars-xlog. No commits have landed on its default branch since September 2025, and its last tagged release is v1.3.0 from 2019.
Problems it solves
- reliable low-power networking layer for a cross-platform mobile app
- fast, crash-safe logging in an Android or iOS app
- share networking code between Android, iOS and Windows clients
Features
- STN signaling network component for mobile apps
- Xlog high-performance logging
- SDT network detection
- shared socket, thread and coroutine library
- Android, iOS, macOS and Windows builds
Limitations
- Unmaintained: no commits since September 2025, and the last tagged release is v1.3.0 from 2019.1
