Git Product home page Git Product logo

Comments (7)

giodamelio avatar giodamelio commented on May 18, 2024 2

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.

nmattia avatar nmattia commented on May 18, 2024 2

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.

angerman avatar angerman commented on May 18, 2024 2

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.

nmattia avatar nmattia commented on May 18, 2024

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.

nmattia avatar nmattia commented on May 18, 2024

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.

nmattia avatar nmattia commented on May 18, 2024

#88

from naersk.

giodamelio avatar giodamelio commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.