Commit Graph

124 Commits

Author SHA1 Message Date
joseLuís
e1cfe9394f +2 plane functions; fix comments 2020-08-12 18:13:03 +02:00
joseLuís
4ac4f1b09e rust: clean root, move build files inside folder 2020-08-12 18:10:18 +02:00
joseLuís
e22232774d rust: add direct-image example 2020-08-12 17:53:50 +02:00
nick black
adcabfae52
rust: assimilate #883 2020-08-12 10:46:59 -04:00
nick black
9704f5cbe7
v1.6.12 2020-08-12 09:37:59 -04:00
nick black
1ada631e94 purge rust/notcurses 2020-08-12 08:42:22 -04:00
joseLuís
efdb4ba4f1 pass rustfmt & fix typos 2020-08-11 18:31:18 +02:00
joseLuís
03f2e7c871 rust: implement palette functions 2020-08-11 18:29:49 +02:00
joseLuís
dbec390fac rust: improve some channel functions
Functions `channel_set()`, `channels_set_fg()`, `channels_set_bg()`
don't return an error anymore. Instead of failing when the rgb value
has any of the last 8 bits set, now it just ignores those bits.
2020-08-11 16:41:18 +02:00
joseLuís
6424e453aa rust: add test modules skeletons 2020-08-11 14:31:57 +02:00
joseLuís
ec92d13306 rust: improve info headers 2020-08-11 14:25:40 +02:00
joseLuís
da34965fcd rust: implement pixel functions 2020-08-11 12:27:40 +02:00
joseLuís
7790913d2f fix typos & improve comments 2020-08-11 11:38:30 +02:00
joseLuís
8b01f26730 rust: improve info headers for maximum consistency
and implement 1 palette fuction
2020-08-11 11:31:29 +02:00
joseLuís
70adc5645b rust: reimplement keys fns & consts 2020-08-11 10:50:51 +02:00
joseLuís
a29fa0395d add handy cargo aliases 2020-08-10 23:56:57 +02:00
joseLuís
ba660aa69b make rust bindings no_std compatible, fixes #872 2020-08-10 23:56:09 +02:00
joseLuís
0362a11f63 make it compatible with no_std environment 2020-08-10 23:48:56 +02:00
joseLuís
799407f98c prepare modules for pending work 2020-08-10 23:44:40 +02:00
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
2020-08-09 16:48:26 +02:00
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
2020-08-09 16:24:58 +02:00
joseLuís
e9bf400a7e tidy up & update crate deps, categories & keywords 2020-08-09 13:36:43 +02:00
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`.
2020-08-08 18:32:45 +02:00
joseLuís
de643589b1 export all new channel functions 2020-08-08 18:04:00 +02:00
José Luis Cruz
8368380b66
Merge pull request #867
Remove warnings about improper_ctypes
2020-08-08 17:54:51 +02:00
joseLuís
590fbf4f1f move channels.rs to libnotcurses-sys crate 2020-08-08 17:49:12 +02:00
joseLuís
2842ffb751 add remaining channel functions 2020-08-08 10:53:32 -04:00
joseLuís
2e640d4146 rewriting the channels inline functions in Rust 2020-08-08 10:53:32 -04:00
José Luis Cruz
9366028919
Remove warnings about improper_ctypes
Fixes: #856
2020-08-08 15:32:02 +02:00
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
2020-08-07 15:39:01 -04:00
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!
2020-08-06 08:15:53 -04:00
nick black
fa76f5a432
v1.6.11 2020-08-03 02:47:07 -04:00
nick black
8cfd1677c4
v1.6.10 2020-08-01 17:53:19 -04:00
nick black
d126c71dd6
v1.6.9 2020-07-26 23:27:11 -04:00
nick black
f8c16ceb79
v1.6.8 2020-07-26 22:20:52 -04:00
nick black
4f8673b0e9
v1.6.7 2020-07-26 21:25:52 -04:00
nick black
f6d1aa74fc
serial_test seems sufficient? 2020-07-21 23:35:24 -04:00
nick black
a1c68b78cb
serial_test seems sufficient? 2020-07-21 23:35:03 -04:00
nick black
17f1323c20
v1.6.6 2020-07-19 21:55:10 -04:00
nick black
308b49da5a
v1.6.5 2020-07-19 21:16:53 -04:00
nick black
b2e924319b
v1.6.4 2020-07-19 20:09:14 -04:00
nick black
a4ee5bd9c7
v1.6.3 2020-07-16 12:53:42 -04:00
nick black
3f544a4ed1
v1.6.2 2020-07-15 23:34:25 -04:00
Nick Black
9ca7d14c2b rust: drop libc_stdout from libnotcurses-sys tests #788 2020-07-13 02:41:19 -04:00
Nick Black
e3e7b40440 rust: use pkg-config results for -I values #788 2020-07-13 02:35:50 -04:00
nick black
1cc0371373
v1.6.1 2020-07-12 03:20:50 -04:00
nick black
284dfc4fad
v1.6.0 2020-07-04 22:40:32 -04:00
nick black
6ab11e679f
v1.5.3 2020-06-28 16:18:57 -04:00
nick black
64d42212a3
v1.5.2 2020-06-19 15:25:41 -04:00
nick black
bea281d120
rust: update for new notcurses_options 2020-06-14 18:16:44 -04:00