#dummy #defined #builds #version #methods #function #rustwlc

dummy-rustwlc

A dummy version of the functions defined in rust-wlc, to be used in testing and for travis builds

17 releases

Uses old Rust 2015

0.7.1 Dec 27, 2017
0.6.5 Oct 15, 2017
0.6.3 Apr 1, 2017
0.6.2 Mar 28, 2017
0.3.3 Jun 22, 2016

#175 in Internationalization (i18n)


Used in way-cooler

MIT license

320KB
3.5K SLoC

Dummy rustwlc

This project exists so one can compile rust-wlc without needing C library references.

It is used in way-cooler's Travis build script.

Usage

Methods with no return type are no-ops. Methods on WlcView and WlcOutput that would usually run with dummy handles will run, unsafe methods will panic.

Other methods with return types have been replaced with unimplemented!().

The methods in callbacks will run without side effects and rustwlc::init returns a function that simply prints a message to the console.

Effectively, dropping in dummy-rustwlc and running your program should cause your program to start, print the message, and exit successfully.

Build Script

To replace a project's rustwlc depenency, one can run this script from the project root to swap dependencies in Cargo.toml.

sed 's/rustwlc = .*/rustwlc = { git = "https:\/\/github.com\/SnirkImmington\/dummy-rustwlc.git" }/g' Cargo.toml -i

Dependencies

~305–590KB
~11K SLoC