Giter VIP home page Giter VIP logo

Comments (3)

Meziu avatar Meziu commented on July 17, 2024 1

It is intentional. Even though the 3DS’ OS doesn’t fit into any public standard (let alone the unix family of operating systems) the many homebrew libraries built for it are made to emulate the general Unix-like ecosystem (first and foremost by using a subset of newlib).

This is what enables us to use most of the standard library’s common implementations without manual intervention and also why many smaller or feature specific crates (like getrandom) can expect a more-or-less standard behaviour by the platform.

Again, having a “unix-like” software ecosystem and being a common desktop OS are two completely different things. One can never expect common functionality from such a specific piece of software and hardware (of which we don’t even know the full inner workings).

from cargo-3ds.

ian-h-chamberlain avatar ian-h-chamberlain commented on July 17, 2024

If you do want to use #[cfg] to avoid the 3DS, you can always use not(target_os = "horizon"), which is what much of the standard library does for things that are unix-ish but don't work on the 3DS.

@Meziu I was thinking of transferring this to https://github.com/orgs/rust3ds/discussions but I don't see a button for doing that... maybe it needs to be transferred to ctru repo first and then converted?

from cargo-3ds.

Meziu avatar Meziu commented on July 17, 2024

@Meziu I was thinking of transferring this to https://github.com/orgs/rust3ds/discussions but I don't see a button for doing that... maybe it needs to be transferred to ctru repo first and then converted?

Possibly, I had noticed these were opened on cargo-3ds, which isn’t where we usually discuss issues related to the toolchain at large.

from cargo-3ds.

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.