Rust programing language®
432 subscribers
14 photos
165 links
rust programing channel
Download Telegram
fz 2.0.0 NEXUS — package manager, BLAKE3 cache, and cross-compilation for C/ASM

Yesterday I shipped 1.9.0. Got a solid mix of hate and genuinely useful feedback. Didn't sleep. Took all of it personally. Built 2.0.0 instead.

No point dragging it out — here's everything I promised, shipped right now.

What's new

BLAKE3 file hashing — 7x faster cache

Dropped SHA256. Switched to BLAKE3 across the board.

Package verification from the catalog uses BLAKE3 too.

📦 Package manager — fz pm

The big one. Dependency management for C/ASM projects that doesn't make you want to quit programming.

fz pm add <repository>
fz pm remove <package>
fz pm update
fz pm list
fz pm search <query>
fz pm install
fz pm catalog

Dependencies live in .fz.yaml. Removal cleans up empty parent directories automatically. Backed by a community-driven JSON package catalog.

🔌 Shared library support

New flags: -shared, -cc-flag, -ld-flag. Build .so and .dylib targets without wiring things up by hand.

🎯 Cross-compilation
fz -target arm-linux-gnueabihf
fz -target riscv64-linux-gnu
fz -target x86_64-w64-mingw32

ARM, RISC-V, x86_64, i386. Compiler, assembler, and linker are selected automatically for the target triple.

🗂 Static libraries
fz -type static -lib mylib

Builds .a archives from object files via ar.

🧠 LSP support
fz -compile-commands

Generates compile_commands.json for clangd and any compatible LSP client. Autocomplete and go-to-definition, no manual config.

Improvements & fixes

Parallel builds with -j N
Linker scripts and text section address: -T, -Ttext
Fixed object file name collisions (hello.asm vs hello.s)
All golangci-lint warnings resolved: errcheck, govet, ineffassign
Context and timeouts for all network and git operations
Test coverage: utils 84%, linker 60%, assembler 60%, builder 56%

Install
go install github.com/forgezero-cli/ForgeZero/cmd/fz@latest


Links

Repository: https://github.com/forgezero-cli/ForgeZero
Package catalog: https://github.com/forgezero-cli/catalog
Docs: https://github.com/forgezero-cli/ForgeZero#readme

Solo project. All issues and PRs read personally. If something's broken or missing — tell me, I'll probably fix it overnight.

via DEV Community: rust (author: Alex Voste)
Solving Global Ecommerce with Crypto — Why I Ditched Traditional Payment Processors

The Problem We Were Actually Solving

The real problem wasn't the users themselves, but the fact that these platforms had significant restrictions on where they operated. Countries like Vietnam, Brazil, and India were often left out in the cold, and even in places where the processors did operate, there were limitations on what kind of purchases users could make. I was trying to solve the problem of making it easy for users to buy digital products online, but the traditional payment processors were putting up roadblocks.

What We Tried First (And Why It Failed)

My initial solution was to just use the existing payment processors and hope for the best. I spent countless hours troubleshooting chargebacks, refunding users, and trying to figure out why my users were being rejected. But the more I dug in, the more I realized that these processors were just not designed to handle the kind of global ecommerce I was trying to build. They were rigid, inflexible, and ultimately, not worth the headaches.

The Architecture Decision

It was then that I turned to cryptocurrency. Specifically, I started using the Cosmos SDK to build a custom blockchain-based payment processor that would allow users from anywhere in the world to buy digital products online. It was a huge architectural shift, but it allowed me to sidestep the limitations of traditional payment processors and create a truly global ecommerce platform.

What The Numbers Said After

The numbers were staggering. After switching to cryptocurrency, my user acquisition costs plummeted, and I was able to open up my platform to users in over 100 different countries. Chargebacks went from a whopping 20% of all transactions to nearly 0%. And the most surprising statistic? User engagement and retention rates actually increased, likely because users were no longer being hassled by payment rejections and chargebacks.

What I Would Do Differently

Looking back, I wish I had explored cryptocurrency sooner. It would have saved me months of frustration and stress dealing with the limitations of traditional payment processors. In hindsight, it was always the obvious choice for a global ecommerce platform. That said, it was a steep learning curve, and I'd caution anyone else who tries to do the same to be prepared for the technical challenges that come with building a custom blockchain-based payment processor. But the results are well worth it.

via DEV Community: rust (author: pretty ncube)