Ian Chamberlain
6f8f20484a
|
1 year ago | |
---|---|---|
.. | ||
src | 1 year ago | |
Cargo.toml | 1 year ago | |
README.md | 1 year ago | |
build.rs | 1 year ago |
README.md
ctru-sys
Raw Rust bindings over the libctru
C library.
Documentation for the latest devkitPro release can be found here.
Requirements
To use the bindings provided by this crate you will need to link against the libctru
library.
Consult the ctru-rs
wiki to learn how to obtain the required packages
to use this library.
Version
This crate's version changes according to the version of libctru
used to generate the bindings, with the following convention:
libctru
versionX.Y.Z-W
ctru-sys
versionXY.Z.P+X.Y.Z-W
where P
is usually 0 but may be incremented for fixes in e.g.
binding generation, libc
dependency bump, etc.
It may be possible to build this crate against a different version of libctru
,
but you may encounter linker errors or ABI issues. A build-time Cargo warning
(displayed when built with -vv
) will be issued if the build script detects
a mismatch or is unable to check the installed libctru
version.
Generating bindings
Bindings of new versions of libctru
can be built using the integrated bindgen.sh
script.
License
This project is distributed under the Zlib license.