Comments (3)
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.
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 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)
- Handle empty "authors" in Cargo.toml HOT 1
- Allow using a prebuilt std if one is found HOT 3
- the current build seems broken HOT 22
- Missing values in `libc` in latest nightly HOT 9
- Rustdoc no longer working HOT 2
- Issue Building Project using cargo-3ds HOT 21
- `cargo 3ds new` and `init` commands HOT 1
- Add `test --doc` support
- Add basic CI / testing
- no license HOT 3
- Set environment variables for CC and CXX to allow building C/C++ wrapper crates HOT 6
- Build 3dsx for *all* executables built by a given command
- Respect `--no-run` when custom runner is set
- Not building when in release mode on Windows HOT 2
- More comprehensive CI coverage HOT 1
- [Help/Feature Request]: Support for winit and rustix HOT 2
- Error trying to compile on MacOS HOT 2
- When a custom runner is used, see if we can build 3dsx before the runner is invoked
- Customize description, icon etc. per-target instead of per-package
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cargo-3ds.