Fenrir
dc2959396c
Add basic error applet support
10 months ago
Ian Chamberlain
bbdcf3fb7c
Add favicon/logo and html_root_url for docs
1 year ago
Andrea Ciliberti
47f1f78f50
Update PR to build with the latest versions
1 year ago
Ian Chamberlain
7d201d825b
Always link ctru, for now
...
Also add a little extra description helper for unknown error types in
ctru::error
1 year ago
Ian Chamberlain
ff12bd0818
Add test-runner as a dependency and fix build errs
...
Luckily, Cargo doesn't mind circular dev-dependencies and we can patch
to ensure it's using the same version. We can also leave this as a
`git = "..."` dependency if we want, since it's a dev dependency.
1 year ago
Fenrir
073ebd767b
Generate ctru-sys bindings at build-time
1 year ago
Andrea Ciliberti
7ec095eca0
Add errno.h to the bindings
2 years ago
Andrea Ciliberti
4eeb09b631
fmt
2 years ago
Andrea Ciliberti
fbfe34605c
Update bindings to latest libctru
2 years ago
AzureMarker
87bbc04dfd
Add a rough ir:USER service wrapper and example
...
Works in the Citra emulator, but not on device.
2 years ago
Ian Chamberlain
042d5602ce
Add a new enum variant for already redirected
...
Also add libc errno error helper and an errno function in ctru_sys.
3 years ago
Ian Chamberlain
92c37b00b7
Add translations of result macros + debug impl
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
a16234c4e1
Run cargo fix to make compatible with Rust 2021
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
271125cabe
Use linker_fix_3ds via dependency instead of static lib
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
d1475d0d2c
Ensure that the sysroot uses its own libc
7 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
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
08b71a18cd
We stdlib now
8 years ago
Fenrir
63d8c50b48
ctru-sys: recreate types.h and libc bindings
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
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
c314c0098e
Added new bindings
9 years ago
Fenrir
225334fcce
Split raw bindings into a separate crate
9 years ago
Fenrir
2bd6509b4f
Compatibility fixes for Rust nightly (1.10.0)
9 years ago
Andor Uhlár
abd30e5e4b
No need for implicit core imports anymore
9 years ago
Ronald Kinard
42e0b9986f
Add bindings for several more services.
10 years ago
Ronald Kinard
4eb7e5ecf6
Add linkage for a large number of ctrulib stuff.
10 years ago
Ronald Kinard
de4cca655d
Initial commit.
10 years ago