Panu Oksala 6/17/2026

MQNet: Shipping a Rust Library to .NET via NuGet

Read Original

This article details the process of building MQNet, a .NET wrapper for the Rust-based mq tool (a jq-like query tool for Markdown). It covers P/Invoke interop with a Rust library, cross-platform native compilation using GitHub Actions, and distributing native binaries through NuGet. The post explains the C# API design, including a fluent API for quick queries and an MqEngine class for repeated operations, plus HTML-to-Markdown conversion. It is a technical guide for .NET developers interested in integrating Rust libraries into their projects.

MQNet: Shipping a Rust Library to .NET via NuGet

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet