Giter VIP home page Giter VIP logo

Comments (4)

yamnikov-oleg avatar yamnikov-oleg commented on May 14, 2024 2

There is a problem with xcb crate which is used by x11-clipboard. The crate generates sources on every build and these sources always come out different because: (1) there is a timestamp commented in them; (2) some elements in the generated code are being randomly reordered.

On the other hand, cargo keeps checksums of all the vendored crates and their files. xcb fails checksum test on the second build after cargo-vendor execution.

There is a possibility to use cargo's [replace] and [patch] sections to bypass the checksum test. But even this way working tree is left dirty on every rebuild.

I'm thinking about making a PR to xcb repository to make source generation determinate for single crate version. If you have better ideas, I'd like to hear them :)

from rooster.

yamnikov-oleg avatar yamnikov-oleg commented on May 14, 2024

I will take this task now, before rooster weak is implemented, so that zxcvbn would be vendored right away.

from rooster.

conradkleinespel avatar conradkleinespel commented on May 14, 2024

Awesome, thanks a lot @yamnikov-oleg ! 👍 😃

from rooster.

conradkleinespel avatar conradkleinespel commented on May 14, 2024

Good spot, @yamnikov-oleg ! Would be awesome if the xcb crate could "just work" with cargo-vendor. I'm sure if you make a PR it would be a big win for the Rust ecosystem 👍 then again I don't know how much work it is. If changing xcb is not possible, the [replace] and [patch] method would be OK too.

from rooster.

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.