cargo-zigbuild VS unsafe-libyaml

Compare cargo-zigbuild vs unsafe-libyaml and see what are their differences.

cargo-zigbuild

Compile Cargo project with zig as linker (by rust-cross)

unsafe-libyaml

libyaml transpiled to rust by c2rust (by dtolnay)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
cargo-zigbuild unsafe-libyaml
19 2
1,198 32
5.8% -
8.6 7.0
1 day ago about 1 month ago
Rust Rust
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

cargo-zigbuild

Posts with mentions or reviews of cargo-zigbuild. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-17.

unsafe-libyaml

Posts with mentions or reviews of unsafe-libyaml. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-02-28.
  • Rust for backend. Is it recommended?
    4 projects | /r/rust | 28 Feb 2023
    The same is not true for CLIs, especially CLIs that don't use async networking. The space has matured incredibly well and almost everything you touch is bulletproof. Clap 4 with derive macros is one of the best libraries of any kind in any language I've ever used. Rayon makes totally safe parallel processing look like a rigged demo that can't possibly be real. Reading and writing JSON and TOML is silky smooth and fast, YAML is held together with sticky tape but it works too. There are incredible libraries like crossterm and tui to make terminal interfaces better and easier and more portable than anything in Go. People say Go is good for CLIs, but I think they must be comparing to Java or something, because Rust runs circles around Go for CLIs, and in ways that end users notice too.
  • C2Rust Transpiler
    7 projects | news.ycombinator.com | 20 Oct 2022
    I used it with great success for transpiring libyaml from C to Rust. I even set up Miri to run the upstream library's entire transpiled test suite, and the fact it passes is validation of absence of UB in the original C code.

    The transpiled library now serves as the YAML backend for the widely used serde_yaml crate. Having serde_yaml be pure-Rust code instead of linking C is advantageous for painless cross-compilation as well as making downstream projects runnable in Miri.

    https://github.com/dtolnay/unsafe-libyaml

What are some alternatives?

When comparing cargo-zigbuild and unsafe-libyaml you can also consider the following projects:

zig - General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.

doom - DOOM translated from C to V.

rust.aws-cdk-lambda - A CDK (v2) Construct Library for AWS Lambda in Rust

grpc-go - The Go language implementation of gRPC. HTTP/2 based RPC

aws-lambda-rust-runtime - A Rust runtime for AWS Lambda

serverless-rust-demo - Sample serverless application written in Rust

terminal-typeracer

ci - AppVeyor community support repository

embed-c - Embed C code at compile time inside Rust using C2Rust

meta-debian - Meta-layer for Poky to build embedded Linux environments by Debian's source codes

aws-sam-cli-app-templates