Rust wrapper for libctru
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Andrea Ciliberti df384492f9 Add docs page to packate manifest 1 year ago
..
src Always link ctru, for now 1 year ago
Cargo.toml Add docs page to packate manifest 1 year ago
README.md Merge pull request #145 from rust3ds/feature/gh-pages-docs 1 year ago
build.rs Export ctru version vars via build script 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

Crate bindings are generated at build time, so the available APIs will depend on the installed version of libctru when the crate is built. If you want to check what version of libctru is being built, you can examine these environment variables from your crate's build script via to its links variables:

  • DEP_CTRU_VERSION: full version string (e.g. "2.3.1-4")
  • DEP_CTRU_MAJOR_VERSION: major version (e.g. "2" for version 2.3.1-4)
  • DEP_CTRU_MINOR_VERSION: minor version (e.g. "3" for version 2.3.1-4)
  • DEP_CTRU_PATCH_VERSION: patch version (e.g. "1" for version 2.3.1-4)
  • DEP_CTRU_RELEASE: release version (e.g. "4" for version 2.3.1-4)

License

This project is distributed under the Zlib license.