Coder Social home page Coder Social logo

Comments (1)

kornelski avatar kornelski commented on August 25, 2024

This is the same as setting CARGO_TARGET_DIR env var. cargo deb should work with the env var.

However, I don't think this has any special relationship with cargo clean. If you call cargo clean without setting the same target dir (whether via env var or the arg), you're just making it irrelevant and act on a directory that probably doesn't exist anyway.

OTOH if you set different target dirs for different builds, then there's no reuse. If you set the same target dir for different targets, I'm not sure if there's any reuse happening either. It can't reuse any target-specific code of course. Maybe some host build dependencies that don't use build.rs could be reused? (the build script can inspect the target and alter crate's behavior, so such crates aren't reusable across targets). But given that libc has a build.rs, there's very little that can be reused.

from cargo-deb.

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.