syntaf / gameoflife Goto Github PK
View Code? Open in Web Editor NEWA terminal based Conways Game of Life
A terminal based Conways Game of Life
This is the output of cargo run --verbose
:
Fresh winapi-build v0.1.1
Fresh libc v0.2.2
Fresh bitflags v0.3.3
Fresh libc v0.1.12
Fresh winapi v0.2.5
Fresh lazy_static v0.1.15
Compiling nix v0.4.2
Fresh advapi32-sys v0.1.2
Fresh kernel32-sys v0.2.1
Running `rustc --crate-name nix /home/owner/.cargo/registry/src/github.com-1ecc6299db9ec823/nix-0.4.2/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=836f95bf2ca324c0 -C extra-filename=-836f95bf2ca324c0 --out-dir /home/owner/GameOfLife/target/debug/deps -L dependency=/home/owner/GameOfLife/target/debug/deps --extern bitflags=/home/owner/GameOfLife/target/debug/deps/libbitflags-5ddbaceb203a03b8.rlib --extern libc=/home/owner/GameOfLife/target/debug/deps/liblibc-7da90cc01a854ef1.rlib --cap-lints allow`
Fresh rand v0.3.12
Fresh term v0.2.14
Fresh tempfile v1.1.3
Fresh gag v0.1.6
error[E0591]: can't transmute zero-sized type
--> /home/owner/.cargo/registry/src/github.com-1ecc6299db9ec823/nix-0.4.2/src/sched.rs:168:20
|
168 | ffi::clone(mem::transmute(callback), ptr as *mut c_void, flags, &mut cb)
| ^^^^^^^^^^^^^^
|
= note: source type: extern "C" fn(*mut std::boxed::Box<std::ops::FnMut() -> isize>) -> i32 {sched::clone::callback}
= note: target type: *const extern "C" fn(*const std::boxed::Box<std::ops::FnMut() -> isize>) -> i32
= help: cast with `as` to a pointer instead
error: aborting due to previous error
error: Could not compile `nix`.
Caused by:
process didn't exit successfully: `rustc --crate-name nix /home/owner/.cargo/registry/src/github.com-1ecc6299db9ec823/nix-0.4.2/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=836f95bf2ca324c0 -C extra-filename=-836f95bf2ca324c0 --out-dir /home/owner/GameOfLife/target/debug/deps -L dependency=/home/owner/GameOfLife/target/debug/deps --extern bitflags=/home/owner/GameOfLife/target/debug/deps/libbitflags-5ddbaceb203a03b8.rlib --extern libc=/home/owner/GameOfLife/target/debug/deps/liblibc-7da90cc01a854ef1.rlib --cap-lints allow` (exit code: 101)
Hi !
i have to launch it like this: RUST_BACKTRACE=1 cargo run
if i just do cargo run , i get this
thread 'main' panicked at 'attempt to subtract with overflow', /home/me/.cargo/git/checkouts/fe-rustty-8ec41129f69af75c/235c388/src/ui/core/alignable.rs:23:38
note: run with RUST_BACKTRACE=1
environment variable to display a backtrace
anyway, +1 star
This seems to be nice project, however I could not test it:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { err: StringError("terminal missing capability: \'smcup\'") }', src/libcore/result.rs:1009:5
note: Run with `RUST_BACKTRACE=1` for a backtrace
Do you think it could be fixed via any settings?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.