rust: fix .gitignore; remove issue example

- make .gitignore just ignore the *root* build dir
- remove unneeded rust/.gitignore
- remove no longer needed issue-rgba.rs
This commit is contained in:
joseLuís 2021-04-10 13:03:54 +02:00
parent 1f67f540e6
commit 66d4f323e8
3 changed files with 1 additions and 22 deletions

2
.gitignore vendored
View File

@ -1,4 +1,4 @@
build/
/build/
doc/examples/book
obj-x86_64-linux-gnu
python/.eggs/

1
rust/.gitignore vendored
View File

@ -1 +0,0 @@
examples/*.c

View File

@ -1,20 +0,0 @@
use libnotcurses_sys::*;
fn main() -> NcResult<()> {
let mut nc = FullMode::new()?;
let stdplane = nc.stdplane();
let plane = NcPlane::new_bound(stdplane, 0, 0, 2, 5)?;
plane.set_base("·", 0, NcChannelPair::with_rgb(0x224411, 0x229922))?;
// BUG FIXME: uncommenting this makes next as_rgba() call fail
// plane.putstr("PLANE")?;
rsleep![&mut nc, 0, 500];
let rgba = plane.as_rgba(NCBLIT_1x1, 0, 0, None, None)?;
println!("\n\n array: {:#?}", rgba);
rsleep![&mut nc, 3];
Ok(())
}