changed the directory structure around and added lib.rs so that it will compile with rustpkg build rust-sdl2 --link-args "-framework SDL2"