Coder Social home page Coder Social logo

libtransistor-rs's Introduction

Libtransistor-rs

libtransistor-rs allows you to write Homebrew apps for the Nintendo Switch in Rust !

Usage

First, you'll need to get hold of the switch-friendly rust fork.

git clone -b horizon https://github.com/roblabla/rust

Once you have this, clone libtransistor-rs. It will have a folder with a simple project you can use as a base to develop your homebrew.

git clone https://github.com/roblabla/libtransistor-rs

simpletest contains a simple hello world, while libtransistor-sys contains bindings to the libtransistor library, a global allocator so you may use Vecs and Hashmap, and links against newlib to satisfy the libc dependency.

To build it, you'll need xargo, which you can install with cargo install xargo. Then it's as simple as

XARGO_RUST_SRC=path/to/rust/src xargo build --target=aarch64-nintendo-horizon-newlib

Your binary will arrive, with all its dependencies statically linked, in target/aarch64-nintendo-horizon-newlib/debug/simpletest. You'll need to run elf2nxo.py on it to get an NRO that you can load in the Mephisto emulator or on an actual nintendo switch.

TODO

  • Make idiomatic bindings to the libtransistor-sys crate.
  • Port libstd to the Switch
  • Find a way to globally install custom target definitions ?

libtransistor-rs's People

Contributors

roblabla avatar

Stargazers

José Luis Cruz avatar  avatar  avatar Victoria Brekenfeld avatar Jose R. avatar jadon avatar Sunguk Lee avatar ihaveahax avatar  avatar Alexandre Sicard avatar Mary Guillemard avatar Anouar avatar Adam Brady avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.