added non-working Rust implementation