stub rust sneakers effect

This commit is contained in:
Greg Shuflin 2023-11-12 13:37:11 -08:00
parent 52c7d86022
commit 7f77dddda9
3 changed files with 17 additions and 0 deletions

View File

@ -1,6 +1,7 @@
mod args;
mod charset;
mod color;
mod sneakers;
use libc::{c_char, c_int, c_void};
use std::ffi::CString;

View File

@ -11,7 +11,13 @@
#include <sys/ioctl.h>
#include "nmseffect.h"
extern void rust_sneakers_effect();
int main(void) {
rust_sneakers_effect();
int termCols, spaces = 0;
unsigned char *display_uc = NULL;
char *display = NULL;

10
src/sneakers.rs Normal file
View File

@ -0,0 +1,10 @@
#[no_mangle]
pub extern "C" fn rust_sneakers_effect() {
println!("Rust sneakers effect");
use std::time::Duration;
let dur = Duration::from_millis(2000);
std::thread::sleep(dur);
}