Giter VIP home page Giter VIP logo

Comments (4)

RazrFalcon avatar RazrFalcon commented on July 3, 2024 1

Yes, this is the expected result. strip removes information used by cargo-bloat. And no, cargo-bloat doesn't check that you have modified the binary. And I'm not sure if this even possible. Unless cargo stores checksum of the original binary somewhere.

from cargo-bloat.

RazrFalcon avatar RazrFalcon commented on July 3, 2024

What is your target? Can you send the binary itself?

from cargo-bloat.

mainrs avatar mainrs commented on July 3, 2024

I am compiling on Ubuntu 18.04 LTS on WSL. The target is 1.41.0-x86_64-unknown-linux-gnu.
I deleted the target folder and re-compiled the program and now it works. Looks like I ran strip on it before running cargo bloat --release. And cargo doesn't check the signature, just if the file is present on the system. So it didn't re-build the file.

If you happen to know why calling strip removes the ability to properly use cargo-bloat, could you explain it to me? :)

from cargo-bloat.

mainrs avatar mainrs commented on July 3, 2024

Ah OK, thanks for letting me know! I was just surprised that cargo doesn't store the checksum and instead just checks if the file exists. Maybe this might be a QoL improvement for cargo 🤔

from cargo-bloat.

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.