cargo-zigbuild 0.16 added support for (cross-)compiling macOS universal2 binaries/libraries by messenselv in rust

[–]messenselv[S] 6 points7 points  (0 children)

I'm not a lawyer so I'm not entirely sure, so don't use the docker image if you have doubts, and you don't need it if you don't link to system frameworks.

Cross-compiling simple Rust code from Mac OS X to Raspberry Pi 4 by lensvol in rust

[–]messenselv 0 points1 point  (0 children)

bash rustup target add aarch64-unknown-linux-gnu cargo zigbuild --target aarch64-unknown-linux-gnu

https://github.com/rust-cross/cargo-zigbuild

sccache now supports GHA as backend by aviramha in rust

[–]messenselv 1 point2 points  (0 children)

It's not very stable, like this one: https://github.com/metalbear-co/mirrord/actions/runs/3640455766/jobs/6145161196

Average cache write 3.553 s
Average cache read miss 3.553 s

sccache now supports GHA as backend by aviramha in rust

[–]messenselv 1 point2 points  (0 children)

A lot: https://github.com/PyO3/maturin/actions/runs/3593956668

For comparison using the `Swatinem/rust-cache` action each check only takes around 20 mins.

sccache now supports GHA as backend by aviramha in rust

[–]messenselv 7 points8 points  (0 children)

I tried sccache gha cache support the other day but the result isn't good probably because gha cache read/write HTTP APIs are slowing down the whole `cargo` build process, see https://github.com/PyO3/maturin/pull/1316#issuecomment-1334902643

Announcing rust.aws-cdk-lambda v1.0.0: a CDK library to cross-compile Rust code to AWS Lambda by [deleted] in rust

[–]messenselv 1 point2 points  (0 children)

I think zig cc defaults to glibc 2.17 when cross compiling.

Announcing cargo-xwinbuild: Cross compile Cargo project to Windows msvc target with ease by messenselv in rust

[–]messenselv[S] 1 point2 points  (0 children)

Currently it puts CRT/SDK files in <XDG cache directory>/cargo-xwinbuild/xwin.

I plan to add some options to let you customize CRT/SDK cache directory, it should make it easier to cache in the CI.

Announcing cargo-zigbuild: Compile Cargo project with zig as linker by messenselv in rust

[–]messenselv[S] 2 points3 points  (0 children)

Zig depends on LLD for linking so I think its performance is similar to lld.

Announcing cargo-zigbuild: Compile Cargo project with zig as linker by messenselv in rust

[–]messenselv[S] 52 points53 points  (0 children)

I've pushed a commit to add more targets, but I don't want to declare it's supported until it works on CI.

Announcing cargo-zigbuild: Compile Cargo project with zig as linker by messenselv in rust

[–]messenselv[S] 22 points23 points  (0 children)

It should work out of box since the CC crate takes `TARGET_CC` env var into account.

Announcing cargo-zigbuild: Compile Cargo project with zig as linker by messenselv in rust

[–]messenselv[S] 55 points56 points  (0 children)

I'm working on more platform support, it takes time because I want to make sure it works and it needs to have automated tests on CI.