Comments (7)
Just running into this now. Wanting to do a x86_64-unknown-linux-musl
build to be deployed to AWS Lambda. I will tinker with this a bit the next few days, but I am a total Nix beginner.
from naersk.
Thanks! I've created a bunch of tickets: https://github.com/nmattia/naersk/issues?q=+is%3Aissue+label%3Amusl+
Last night I added a definition for rustc
with a wasm32
and a musl target (#90). The next step is to actually provide a way of using it (#93). After that, you can knock yourself out :)
from naersk.
hooray, I've just bumped into this as well. Looking at #98, and specifically at
https://github.com/nmattia/naersk/pull/98/files#diff-6938ea327f87ba609b4fafc30775f3e9R38-R39
I'm left to believe that cross compilation should be as easy as setting a different
CARGO_BUILD_TARGET
? How does that inherit the toolchain? And what about rust libraries that link against system libraries and would expect those to be cross compiled as well?
from naersk.
Hey @expipiplus1 , can you clarify what you mean by "cross compiling"? I've meant to add wasm and musl builds to naersk, just haven't found the time yet. I'll also need to write a guide on how I do it at $WORK. Do you mean more cross compilation targets?
from naersk.
Let me get started on this, I have the code lying around, just need to integrate it. First I want to extend the test suite to run on multiple nixpkgs versions, otherwise it's going to be hell to debug.
from naersk.
from naersk.
Thanks so much! I gave it a shot, but it was a little much for my novice Nix skills.
If you need any help testing let me know, I can at least be a beta tester.
from naersk.
Related Issues (20)
- Simple example for working with workspace with multiple binaries HOT 4
- Naersk handles multi-toolchain builds incorrectly HOT 2
- crate that is necessary fo building is removed from the `crates` directory when trying to build `nu-shell` HOT 6
- error: ... does not provide attribute 'packages.aarch64-darwin.default' or 'defaultPackage.aarch64-darwin' HOT 2
- `overrideAttrs` and `buildInputs` doesn't include override inputs in environment HOT 4
- Updating git repository during build throws "failed to resolve address" error HOT 5
- New discovery algorithm doesn't handle symlinks HOT 1
- Naersk has linking failures when building natively on aarch64-linux HOT 2
- Explain what `naersk` is
- How to cargo publish? HOT 2
- two step builds fail if CMake is used in a `build.rs` HOT 5
- Building crate that has a git submodule that is a crate that one depends on as a path dependency seems to fail? HOT 4
- no matching package named `sea-orm` HOT 4
- Cargo/rustc linker serach path when in developer shell HOT 7
- how do i build examples like cargo build --example example_name HOT 3
- Passing options to clippy HOT 2
- Monorepo with multiple crates that can not share a workspace is not possible to build? HOT 6
- Project's build.rs file not getting executed at all HOT 2
- Issues with `autocxx` in sandbox. HOT 14
- dummy-src build failed with "cp: missing file operand" HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from naersk.