tmerr / i3ipc-rs

A Rust library for controlling i3-wm through its IPC interface
MIT License
106 stars 33 forks source link

Support new features in i3 4.12, 4.13, and 4.14 using conditional compilation #9

Closed tmerr closed 6 years ago

tmerr commented 7 years ago

Look into letting the user specify the minimum i3 version using conditional compilation. Then everyone can use the same i3ipc-rs from crates.io regardless of how up-to-date the i3-wm package is in their linux distribution's package manager.

tmerr commented 7 years ago

It should be possible to use a chain of features and enable/disable blocks of code with cfg attributes. Need to support:

4.12

4.13

4.14