Giter Club home page Giter Club logo

Comments (2)

epage avatar epage commented on June 8, 2024 1

I have wondered if there would be benefits to allowing package.build to be split out into its own target table.

For the field name, I would likely go with [whatever field is used with per-package-targets (currently forced-target).
Do you need only the build script to be forced to a target or would doing it for the entire package work? Granted, not everyone with forced-target might want that but I worry about a package that is meant for any target but the build script only works on one.

As for the request itself, it feels a bit odd to me and I'm hesitant. I'm not sure if its lack of knowledge or familiarity with the use case or what.

from cargo.

chloekek avatar chloekek commented on June 8, 2024

The crate itself happens to be built for x86_64-pc-windows-msvc as well, so building the build script and the crate for the same target would work.

I agree that restricting builds to a particular target can be problematic. However, a build script that builds for any target, but then works only on one target because it spawns a target-specific subprocess makes little difference.

from cargo.

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.