Commit Graph

105 Commits (e5d17fd20c6dd2a0b4b0d9394b45a71bc1dddc77)

Author SHA1 Message Date
joseLuís 2f1b4074eb fix & refactor Rust bindings
- move types functions out of lib.rs into their own modules
- add modules types, and for cell & plane functions
- change error handling for consistency with the underlying lib
- reformat the code
4 years ago
José Luis Cruz 92350b4694
turn off doctests
Fixes bindgen errors due to invalid Rust comments imported from functions `ncmultiselector_options` and `ncselector_item`.

Related:
- https://github.com/rust-lang/rust-bindgen/issues/426
- https://github.com/rust-lang/rust-bindgen/issues/1749
4 years ago
joseLuís e9bf400a7e tidy up & update crate deps, categories & keywords 4 years ago
joseLuís 84c637d3e8 copy all comments as doc Rust comments
In principle it would be better to write the comments intented
for documentation as `///` (or `/** */` for multi-line), but
this way it works mostly, without having to change them all.

There are two comments that are not valid Rust doc-comments,
and arerendered badly: The are the ones in:
`ncmultiselector_options` and `ncselector_item`.
4 years ago
joseLuís de643589b1 export all new channel functions 4 years ago
José Luis Cruz 8368380b66
Merge pull request #867
Remove warnings about improper_ctypes
4 years ago
joseLuís 590fbf4f1f move channels.rs to libnotcurses-sys crate 4 years ago
joseLuís 2842ffb751 add remaining channel functions 4 years ago
joseLuís 2e640d4146 rewriting the channels inline functions in Rust 4 years ago
José Luis Cruz 9366028919
Remove warnings about improper_ctypes
Fixes: #856
4 years ago
joseLuís 1caba6ac29 refactor test module
- new function for creating the notcurses options for tests
- hide the initial statistics for cleaner test output
- reformat file with rustfmt
4 years ago
nick black df25fc99b9 rust: generate direct mode bindings
When we split direct.h out from notcurses.h, I forgot to add
the new header file to the bindgen-rs includes. I've added
it, and also added a simple directmode unit test.

Closes #853. Thanks @joseluis for reporting this issue!
4 years ago
nick black fa76f5a432
v1.6.11 4 years ago
nick black 8cfd1677c4
v1.6.10 4 years ago
nick black d126c71dd6
v1.6.9 4 years ago
nick black f8c16ceb79
v1.6.8 4 years ago
nick black 4f8673b0e9
v1.6.7 4 years ago
nick black f6d1aa74fc
serial_test seems sufficient? 4 years ago
nick black a1c68b78cb
serial_test seems sufficient? 4 years ago
nick black 17f1323c20
v1.6.6 4 years ago
nick black 308b49da5a
v1.6.5 4 years ago
nick black b2e924319b
v1.6.4 4 years ago
nick black a4ee5bd9c7
v1.6.3 4 years ago
nick black 3f544a4ed1
v1.6.2 4 years ago
Nick Black 9ca7d14c2b rust: drop libc_stdout from libnotcurses-sys tests #788 4 years ago
Nick Black e3e7b40440 rust: use pkg-config results for -I values #788 4 years ago
nick black 1cc0371373
v1.6.1 4 years ago
nick black 284dfc4fad
v1.6.0 4 years ago
nick black 6ab11e679f
v1.5.3 4 years ago
nick black 64d42212a3
v1.5.2 4 years ago
nick black bea281d120
rust: update for new notcurses_options 4 years ago
nick black 0657267274
v1.5.1 4 years ago
nick black 4d9171aee1
rust: get libnotcurses-sys compiling #704 4 years ago
nick black 7fc38d8fdd
v1.5.0 4 years ago
nick black 3bc9a4cfa2
v1.4.5 4 years ago
nick black 6bbf15cbd4
bump rust versions 4 years ago
nick black 354ece5826
v1.4.4.1 4 years ago
nick black 230f3af8e1
v1.4.4 4 years ago
nick black c08c9b7f7f
v1.4.3 4 years ago
nick black 5537692bd1
cells_rounded_box() is now exported 4 years ago
nick black 99990e9a92
sigh, rust 4 years ago
nick black 32d3ae91c8
v1.4.2.3 4 years ago
nick black e132c6bb24
v1.4.2.2 4 years ago
nick black 49fb03655e
v1.4.2.1 4 years ago
nick black 38e67abd9d
v1.4.2 4 years ago
nick black 8b5b44cf36
v1.4.1 4 years ago
nick black 6a22040584
v1.4.0 4 years ago
nick black e2b610506f
v1.3.4 4 years ago
nick black 8feb01c7cc
rust: use ncplane_dim_{y|x} from libnotcurses-sys 4 years ago
nick black 0d38adc60a
rust: move inline replacements to libnotcurses-sys 4 years ago