GithubHelp home page GithubHelp logo

Comments (2)

rodrigocfd avatar rodrigocfd commented on June 7, 2024

In the early days of this crate, it was a superset of the winapi crate, which provided all the low-level definitions. At some point, however, I found myself doing a lot of work due to the intrinsic unsafety of those structs.

LVITEM is a good example: it has a string pointer field, which must not be exposed... so I had to write a wrapper to the struct, although I could not hide the old one. And it started to pile up.

So, after walking in circles for a while, it made sense that the low level stuff should be part of the crate itself, what also made it possible to get rid of the heavy dependency.

So, there is no intention to go back to that situation.

Unfortunately a safe Win32 wrapper cannot be generated by a computer (so far!), so we have to pay the price of living the possibility of human errors along the process. The fact it is open source is good in this sense – several people have eyed this crate and fixed things.

It will, however, at some point make use of the windows-targets crate, see #75.

from winsafe.

TomzBench avatar TomzBench commented on June 7, 2024

Gotcha - makes sense, thanks for the explanation!

from winsafe.

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.