SaaSHub helps you find the best software and product alternatives Learn more →
Cargo-zigbuild Alternatives
Similar projects and alternatives to cargo-zigbuild
-
zig
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
-
rust.aws-cdk-lambda
A CDK (v2) Construct Library for AWS Lambda in Rust
-
InfluxDB
Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.
-
-
serverless-rust-demo
Sample serverless application written in Rust
-
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
-
-
-
-
-
-
-
probe-rs
A debugging toolset and library for debugging embedded ARM and RISC-V targets on a separate host
-
-
-
cargo-xwin
Cross compile Cargo project to Windows MSVC target with ease
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
cargo-zigbuild reviews and mentions
-
Conditional compilation to avoid cross compilation
Perhaps you can try cargo-zigbuild, it uses zig-cc for cross-compilation instead of creating a container, so it should be much more lightweight on MacOS, without all the cost of virtualization and file sharing.
- Cross-compiling simple Rust code from Mac OS X to Raspberry Pi 4
-
Future of Rust, 2023 and beyond?
I have tried, however I haven't been able to get it to work reliably (e.g. building on windows + linux on WSL works, Mac is a lot more involved; tried building for windows + linux on Mac and I couldn't get it to work at all); I've had some luck using zigbuild but that too doesn't seem to work for Mac.
-
C2Rust Transpiler
Zig also takes this approach, and even exposes its C compiler (which if I recall correctly is basically Clang plus diverse sysroots and other customisation out of the box) as a separate `zig cc`.
I do a lot of work in Rust, and cross-compilation can be a pain when you have a lot of C dependencies. Fortunately https://github.com/messense/cargo-zigbuild exists. It sounds crazy, but using Zig's inbuilt C compiler to help build my Rust projects has been the smoothest option I've found.
I can't help but wonder if it would be worth it for Rust to follow D and Zig by shipping its own inbuilt C compiler, even if they still want to also support external C toolchains. It should be roughly the same effort as it was for Zig, given that they both use LLVM.
-
Short story of Rust being amazing yet again (because it compiles on different architectures effortlessly)
Wait until you start using cargo zig-build. Suddenly it becomes way better than Go's cross compiler because you can seamlessly cross-compile rust AND C (thanks to Zig compiler of course). https://github.com/messense/cargo-zigbuild
- The perfect language
-
Cross-compilation in Rust
I've personally used cargo-zigbuild and cargo-xwin to distribute a GUI app built with iced.
-
Announcing rust.aws-cdk-lambda v1.0.0: a CDK library to cross-compile Rust code to AWS Lambda
I've just published a new major release, v1.0.0 of the rust.aws-cdk-lambda construct library, which now uses cargo-zigbuild instead of a containerized approach using cross for building and cross-compiling Rust code. After initial testing, I am quite satisfied with the results; overall build and deploy times seem to now be faster with zig, and compilation after making minor code changes is now overall much faster! I am using this CDK construct library in a professional setting currently, but I hope others can also take advantage and benefit from using this library along with AWS CDK for any deployments to AWS Lambda.
-
Rust on M1 What experience?
Once tool I will recommend is cargo zigbuild, for when you inevitably need to cross compile. Makes it a breeze.
-
Misadventures Playing in Rust on AWS Lambda
In addition to learning a great deal from Nicolas' code, I also followed suggestions he made to fix my issue of running builds for x86. He came across cargo-zigbuild which uses ziglang as the linker for cross compiling.
-
A note from our sponsor - #<SponsorshipServiceOld:0x00007f160cf09cd0>
www.saashub.com | 1 Apr 2023
Stats
rust-cross/cargo-zigbuild is an open source project licensed under MIT License which is an OSI approved license.
Popular Comparisons
- cargo-zigbuild VS zig
- cargo-zigbuild VS aws-lambda-rust-runtime
- cargo-zigbuild VS rust.aws-cdk-lambda
- cargo-zigbuild VS serverless-rust-demo
- cargo-zigbuild VS embed-c
- cargo-zigbuild VS aws-sam-cli-app-templates
- cargo-zigbuild VS Visual Studio Code
- cargo-zigbuild VS abilists
- cargo-zigbuild VS wally
- cargo-zigbuild VS terminal-typeracer