FreePascal/Lazarus and Rust Integration P.II
dev.to·4h·
Discuss: DEV
🦀Rust Macros
Preview
Report Post

In this installment we will see how to show something useful that integrates Rust + Lazarus/Free Pascal.

All the code and more can be found in the linked repo.

A simple JSON <> MessagePack converter

The Rust Library

We want to build a Rust library that handles the conversion between JSON and MessagePack (and viceversa). If you are new to MessagePack, think of it as a "compiled" binary JSON, a way to reduce JSON size bot in transmission and at rest. The problem with MessagePack is that, contrary to JSON, it is not human readable. That is where a JSON <> MessagePack converter could find its use case. So, let’s build one!

As for the Rust library, let’s create a…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help