make rust bindings no_std compatible, fixes #872

This commit is contained in:
joseLuís 2020-08-10 23:56:06 +02:00
parent 0362a11f63
commit ba660aa69b
4 changed files with 4 additions and 10 deletions

View File

@ -21,9 +21,8 @@ keywords = ["tui", "cli", "terminal", "ncurses", "ffi"]
[dependencies] [dependencies]
libc = {version = "0.2.74", default-features = false} libc = {version = "0.2.74", default-features = false}
cty = "0.2.1" cty = "0.2.1"
# blocked by: https://github.com/Amanieu/cstr_core/issues/4 # cstr_core = "0.2" # waiting for the next version after 0.2.0
# cstr_core = "0.2" cstr_core = {git= "https://github.com/Amanieu/cstr_core"}
cstr_core = {path = "../../../../_temp_clones/cstr_core"}
libc-print = "0.1.13" libc-print = "0.1.13"
[build-dependencies] [build-dependencies]

View File

@ -11,13 +11,12 @@
// -------------- // --------------
// nckey_mouse_p // nckey_mouse_p
// nckey_supppuab_p // nckey_supppuab_p
//
// use std::ffi::CString;
//
// use crate as ffi; // use crate as ffi;
// use crate::types::{ChannelPair, IntResult}; // use crate::types::{ChannelPair, IntResult};
// // Is this char32_t a Supplementary Private Use Area-B codepoint? // // Is this char32_t a Supplementary Private Use Area-B codepoint?
// static inline bool // static inline bool
// nckey_supppuab_p(char32_t w){ // nckey_supppuab_p(char32_t w){

View File

@ -51,8 +51,6 @@
// notcurses_term_dim_yx // notcurses_term_dim_yx
// use std::ffi::CString;
//
// use crate as ffi; // use crate as ffi;
// use crate::types::{ChannelPair, IntResult}; // use crate::types::{ChannelPair, IntResult};

View File

@ -22,8 +22,6 @@
// ncpixel_set_rgb // ncpixel_set_rgb
// use std::ffi::CString;
//
// use crate as ffi; // use crate as ffi;
// use crate::types::{ChannelPair, IntResult}; // use crate::types::{ChannelPair, IntResult};