#demo

app objrs_demo

Demonstration of objrs

2 releases

0.0.1 Aug 23, 2018
0.0.0 May 14, 2018

#26 in macOS APIs

Download history 14/week @ 2018-08-24 2/week @ 2018-08-31 3/week @ 2018-09-07 2/week @ 2018-09-14 1/week @ 2018-09-21 5/week @ 2018-09-28 2/week @ 2018-10-05 7/week @ 2018-10-19 2/week @ 2018-10-26 7/week @ 2018-11-02 7/week @ 2018-11-09

19 downloads per month

Apache-2.0 OR MIT OR MPL-2.0

260KB
3K SLoC

objrs demo

This demo of objrs is written in 100% Rust. It uses objrs to compile to machine code that is ABI-compatible with Objective-C, allowing it to utilize native Objective-C frameworks (e.g. AppKit, Foundation, Metal, MetalKit, etc.) without any intermediary FFI bridges.

When run, the application will open a window that uses Metal to render the Rust logo. Moving your mouse across this logo will interactively distort it.

Requirements

  • A recent version of macOS (only macOS 10.13.6 has been tested).
  • Nightly Rust compiler (tested on rustc 1.30.0-nightly (b2028828d 2018-08-16)).

Instructions

Just cargo run to run the demo app. Running the latest version of the demo can be done as follows:

git clone https://gitlab.com/objrs/objrs.git
cd objrs/demo
cargo run

The demo is also published on crates.io under the name objrs_demo.

License

See the COPYRIGHT file. objrs (including this demo) is triple-licensed under the Apache License 2.0, MIT License, and Mozilla Public License 2.0 terms.

This demo renders a copy of the Rust logo with interactive distortions applied. The file logo_triangles.i16.xz is a copy of the Rust logo (represented as a 2D triangulated mesh in binary form). The Rust logo is licensed by Mozilla under the Creative Commons Attribution license (CC-BY).

Dependencies

~1.5MB
~30K SLoC