Merge branch 'master' of github.com:dankamongmen/notcurses

This commit is contained in:
nick black 2020-12-06 12:28:28 -05:00
commit d6f7358977
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC
3 changed files with 11 additions and 10 deletions

View File

@ -5,6 +5,7 @@ authors = ["nick black <dankamongmen@gmail.com>"]
license = "Apache-2.0"
edition = "2018"
description = "Low-level Rust bindings for the notcurses C library."
documentation = "https://dankamongmen.github.io/notcurses/rustdoc/libnotcurses_sys/"
repository = "https://github.com/dankamongmen/notcurses"
homepage = "https://nick-black.com/dankwiki/index.php/Notcurses"
links = "notcurses"
@ -29,8 +30,3 @@ pkg-config = ">= 0.3.18"
[dev-dependencies]
serial_test = ">= 0.5.0"
serial_test_derive = ">= 0.5.0"
rand = "0.7.3"
[lib]
doctest = false

View File

@ -1,6 +1,6 @@
# libnotcurses-sys
[![Crate](https://img.shields.io/crates/v/libnotcurses-sys.svg)](https://crates.io/crates/libnotcurses-sys)
[![API](https://docs.rs/libnotcurses-sys/badge.svg)](https://docs.rs/libnotcurses-sys)
[![API](https://docs.rs/libnotcurses-sys/badge.svg)](https://dankamongmen.github.io/notcurses/rustdoc/libnotcurses_sys/)
[![dependency status](https://deps.rs/crate/libnotcurses-sys/2.0.7/status.svg)](https://deps.rs/crate/libnotcurses-sys/2.0.7)
[![MSRV: 1.40.0](https://flat.badgen.net/badge/MSRV/1.40.0/purple)](https://blog.rust-lang.org/2019/12/19/Rust-1.40.0.html)

View File

@ -1,8 +1,11 @@
//! `libnotcurses-sys` is a *close to the metal* Rust wrapper for the [notcurses
//! C library](https://www.github.com/dankamongmen/notcurses/)
//!
//! The bindings are still incomplete, and a work in progress.
//!
//! There is also the [notcurses](https://crates.io/crates/notcurses) crate,
//! for a more idiomatic wrapper, which should be safer and more higher level.
//! for a safer, more idiomatic wrapper, and with higher level abstractions,
//! but also still very much more incomplete.
//!
//! # Ways of using this library
//!
@ -78,9 +81,9 @@
//! each context before it goes out of scope ([Notcurses], [NcDirect]), and
//! should manually destroy [NcPlane]s, [NcMenu]s… when no longer needed.
//!
//! 2. Instead of handling errors with `Result` (as is customary in Rust),
//! 2. Instead of handling errors with `Result` (as customary in Rust),
//! several functions return an [NcResult] with a value of [NCRESULT_ERR],
//! (as is customary in C), or [NCRESULT_OK].
//! (as customary in C), or [NCRESULT_OK].
//!
//! The [notcurses]() crate overcomes this limitations by using higher level
//! abstractions, while pulling itself apart from the C API, in ways this
@ -92,7 +95,9 @@
//! - Renames types to enforce regularity and consistency. (e.g. [NcCell])
//! - Has handy macros like [sleep], [rsleep] & [cstring].
//!
//! ## notcurses C API docs:
//! ## The `notcurses` C API docs
//!
//! For reference:
//!
//! - [Doxygen Documentation](https://nick-black.com/notcurses/html/index.html)
//! - [API reference (man pages)](https://nick-black.com/notcurses/)