5 releases

2.5.1-beta Jul 11, 2025
2.5.0-beta3 Jan 3, 2025
2.1.3-beta Oct 5, 2022
2.0.2-beta Apr 4, 2022
1.6.0-alpha6 Jul 27, 2021

#1341 in Network programming

Download history 43/week @ 2025-11-06 52/week @ 2025-11-13 13/week @ 2025-11-20 22/week @ 2025-11-27 31/week @ 2025-12-04 19/week @ 2025-12-11 36/week @ 2025-12-18 60/week @ 2025-12-25 15/week @ 2026-01-01 22/week @ 2026-01-08 20/week @ 2026-01-15 106/week @ 2026-01-22 22/week @ 2026-01-29 39/week @ 2026-02-05 11/week @ 2026-02-12 25/week @ 2026-02-19

104 downloads per month
Used in 5 crates (2 directly)

MIT license

26MB
659K SLoC

C 418K SLoC // 0.1% comments Perl 197K SLoC // 0.1% comments Rust 16K SLoC // 0.0% comments C++ 10K SLoC // 0.1% comments GNU Style Assembly 6.5K SLoC // 0.1% comments Bitbake 4K SLoC // 0.0% comments Templ 3.5K SLoC // 0.2% comments M4 1.5K SLoC // 0.0% comments Visual Studio Project 700 SLoC Prolog 644 SLoC Assembly 311 SLoC // 0.1% comments Shell 150 SLoC // 0.4% comments ASN.1 136 SLoC // 0.5% comments C# 108 SLoC // 0.1% comments Emacs Lisp 35 SLoC // 0.5% comments Python 29 SLoC // 0.3% comments Ruby 14 SLoC // 0.3% comments NuGet Config 7 SLoC

MsQuic logo

Discord Documentation Perf Dashboard codecov crates.io nuget CII Best Practices

MsQuic is a Microsoft implementation of the IETF QUIC protocol. It is cross-platform, written in C and designed to be a general purpose QUIC library. MsQuic also has C++ API wrapper classes and exposes interop layers for both Rust and C#.

[!TIP] You are using MsQuic? Let us know! Knowing our users lets us prioritize work and keep improving MsQuic in the best possible direction. Post in the Discussion to say hello and give us a wave on Discord!

Protocol Features

QUIC has many benefits when compared to existing "TLS over TCP" scenarios:

  • All packets are encrypted and handshake is authenticated with TLS 1.3.
  • Parallel streams of (reliable and unreliable) application data.
  • Exchange application data in the first round trip (0-RTT).
  • Improved congestion control and loss recovery.
  • Survives a change in the clients IP address or port.
  • Stateless load balancing.
  • Easily extendable for new features and extensions.

Library Features

MsQuic has several features that differentiates it from other QUIC implementations:

  • Optimized for client and server.
  • Optimized for maximal throughput and minimal latency.
  • Asynchronous IO.
  • Receive side scaling (RSS) support.
  • UDP send and receive coalescing support.
  • Kernel stack bypass via XDP.

Documentation

Contributing

For information on contributing, please see our contribution guidelines. Feel free to take a look at our Good First Issues list if you're looking for somewhere to start. If you'd just like to talk, come chat with us on Discord.

Dependencies

~0.4–11MB
~61K SLoC