AzureMarker
1402dacc5f
Update libc to the upstream
...
Our PR merged.
3 years ago
Ian Chamberlain
6b5d420ed2
Use a module instead of include!
...
Modules are better understood by rust-analyzer compared to macros
expansion, and we can still use the same bindgen script and lint attrs.
3 years ago
AzureMarker
f2b1b75224
Apply Clippy suggestions
3 years ago
AzureMarker
ffb239853e
Update to Rust 2021
3 years ago
AzureMarker
a16234c4e1
Run cargo fix to make compatible with Rust 2021
3 years ago
AzureMarker
72dafc7fc2
Update crates to 2018
3 years ago
AzureMarker
f776cc18c6
Minimize ctru-sys build script churn
3 years ago
AzureMarker
9d177faa90
Link pthread-3ds via Cargo instead of static lib
...
This fixes the panic issue (not calling `panic_count::increase`) as well
as the missing debug info. The static lib contained a second copy of the
rust std, which caused these issues.
A side effect of removing this std is that the linker fix and pthread
library modules need to be "reachable" from the main module for Rust to
link them correctly. If the init methods of the modules are not called
somewhere, then a linker error will be emitted saying some symbols are
not found. The linker fix module didn't need this before because the
std included in the pthread static lib required those symbols, so they
were included. Now that the std is linked in later, Rust thinks these
symbols are unused (hence the init method).
Also moved the linker fix to be a dependency on ctru-rs. ctru-sys should
just be about interfacing with libctru.
3 years ago
AzureMarker
55e701ad5c
Add "links" value to ctru-sys Cargo.toml
3 years ago
AzureMarker
8dd2f6ebd3
Update dependency reference after linker-fix-3ds PR merged
3 years ago
AzureMarker
271125cabe
Use linker_fix_3ds via dependency instead of static lib
3 years ago
AzureMarker
42e68139cb
Fix Console and Swkbd to not move after initialization
3 years ago
AzureMarker
82d0055b22
Update to latest libctru
...
Includes fixes from vivlim and Meziu, such as two static libraries that
fix missing symbols during linking.
3 years ago
Fenrir
da8eeb74b9
Update bindings for libctru 1.5.0
7 years ago
Fenrir
1dffa9cc16
Link libctru in ctru-sys
...
Allows debug builds to compile without throwing out random linker
errors. Plus it probably should have been this way the whole time
anyway.
7 years ago
Fenrir
d1475d0d2c
Ensure that the sysroot uses its own libc
7 years ago
Fenrir
cbafc1a01b
Better workaround for the `feature(rustc_private)]` issue
...
Now you don't need a janky `Xargo` fork anymore!
7 years ago
Fenrir
9f5d769afa
Update bindings for libctru v1.4.0
7 years ago
Fenrir
d36057aee0
Use Error applet to display panics
8 years ago
Fenrir
ad54bcd9a5
Update bindings for libctru 1.3.0
8 years ago
Fenrir
370650f4b6
Go back to using pre-generated bindings
...
Bindgen takes a long time to compile, and we only ever need to update
bindings for new ctrulib releases anyway.
8 years ago
Fenrir
0f919b248f
Handle linking in ctru-rs build script
8 years ago
Fenrir
cf1f07558a
Use bindgen for ctru_sys bindings
8 years ago
Fenrir
eec80b496b
Use libc from crates.io
...
The libc crate has newlib bindings now, so we don't have to maintain them in-tree anymore
8 years ago
Fenrir
ab1a105174
ctr-libc: remove conditional dependency on std
...
I'd thought that it would be necessary for implementing features such as the std::os::raw types in ctr-std, but I do not believe that that is the case.
8 years ago
Fenrir
08b71a18cd
We stdlib now
8 years ago
Fenrir
5dc31d60cc
Regenerate gpu bindings
8 years ago
Fenrir
e4cf305807
Regenerate raw service bindings
8 years ago
Fenrir
4991de6d39
Use bitflags for fs services
8 years ago
Fenrir
63d8c50b48
ctru-sys: recreate types.h and libc bindings
8 years ago
Fenrir
539fa2a425
Split out libstd crate
8 years ago
Fenrir
1a4c4915d5
Fix deprecation and stablization warnings
...
The question mark feature was stablized and the Reflect marker trait was deprecated
8 years ago
Fenrir
b1a213f56a
Remove libc OS error functions
...
We aren't actually using any of newlib's error functionality. All of our
errors come from ctrulib functions.
8 years ago
Fenrir
b1779396be
Add io module from libstd
...
Also includes CString and CStr modules
8 years ago
Fenrir
cbd08e83f8
ctru-sys: add errno function
8 years ago
Fenrir
c7e709ffa4
ctru-sys: add proper libc typedefs
8 years ago
Fenrir
b8a08d5b08
Regenerate raw fs bindings
8 years ago
Fenrir
b75b7f804a
Use abort() when panicking
9 years ago
Fenrir
1e66941320
Update bindgen comment
9 years ago
Fenrir
b76009d0d5
moved system libs to sys folder
9 years ago
Fenrir
2feaf8f636
core::fmt::Write support for the console
9 years ago
Fenrir
7b2483622d
Redesigned console API
9 years ago
Fenrir
3329bcb300
More experimental console/stdio stuff.
9 years ago
Fenrir
c314c0098e
Added new bindings
9 years ago
Fenrir
225334fcce
Split raw bindings into a separate crate
9 years ago