Convert to rustpkg.
Fix up test program for rustpkg and new Rust

This isn't an automated test harness but rustpkg will build it simply because
of the name test.rs.