#pdcurses #curses #bindings #flavor #pd-curses #win32a

sys pdcurses-sys

FFI bindings for PDCurses, specifically the win32a implementation

11 releases (6 breaking)

Uses old Rust 2015

0.7.1 Mar 9, 2019
0.7.0 Nov 16, 2017
0.6.0 Nov 4, 2017
0.5.1 Sep 18, 2017
0.1.0 Mar 16, 2016

#556 in Command-line interface

Download history 812/week @ 2024-07-20 779/week @ 2024-07-27 665/week @ 2024-08-03 791/week @ 2024-08-10 752/week @ 2024-08-17 789/week @ 2024-08-24 986/week @ 2024-08-31 900/week @ 2024-09-07 859/week @ 2024-09-14 919/week @ 2024-09-21 857/week @ 2024-09-28 412/week @ 2024-10-05 568/week @ 2024-10-12 580/week @ 2024-10-19 701/week @ 2024-10-26 725/week @ 2024-11-02

2,602 downloads per month
Used in 63 crates (3 directly)

MIT license

1MB
27K SLoC

C 24K SLoC // 0.2% comments Rust 2K SLoC // 0.0% comments M4 861 SLoC // 0.1% comments RPM Specfile 65 SLoC

Contains (autotools obfuscated code, 200KB) src/PDCurses/x11/configure, (obscure autoconf code, 8KB) src/PDCurses/x11/configure.ac

pdcurses-sys Build status Crates.io

pdcurses-sys provides Rust FFI bindings for PDCurses, specifically the fork by Bill-Gray.

Requirements

A native C compiler that cc-rs can use to compile PDCurses.

On Windows this means that you need the Visual C++ Build Tools. Check the rustup docs for more Rust <-> Windows information.

Usage

Cargo.toml

[dependencies]
pdcurses-sys = "0.7"

Picking a flavor

pdcurses-sys supports both the win32 and win32a flavors of PDCurses. It defaults to win32a if none is specified. You can use Cargo features to choose which one to use:

Cargo.toml

[dependencies.pdcurses-sys]
version = "0.7"
features = ["win32"]

License

Licensed under the MIT license, see LICENSE.md

Dependencies