You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: build.rs
    path of file: ./repos/kiomet/client
    
    the code of the file until where you have to start completion: // SPDX-FileCopyrightText: 2023 Softbear, Inc.
// SPDX-License-Identifier: AGPL-3.0-or-later

use common_util::angle::Angle;
use glam::Vec2;
use std::env;
use std::path::Path;

fn main() {
    let out_dir = env::var_os("OUT_DIR").unwrap();

    le
    
fn poisson_disk_sampling(n: usize, r: f32) -> Vec<Vec2> {
    use rand::prelude::*;
    use rand_chacha::ChaCha20Rng;
    let mut rng = ChaCha20Rng::from_seed(Default::default());

    let individual_area = r.powi(2) * std::f32::consts::PI * 1.1;

    let mut points: Vec<Vec2> = Vec::with_capacity(n);
    while points.len() < n {
        let area = points.len() as f32 * individual_area;
        let mut radius = (area * (1.0 / std::f32::consts::PI)).sqrt();
        loop {
            let angle = rng.gen::<Angle>();
            let new_point = angle.to_vec() * radius;

            let mut ok = true;
            for &point in &points {
                if new_point.distance_squared(point) < r {
                    ok = false;
                }
            }
            if ok {
                points.push(new_point);
                break;
            }
            radius = radius * 1.05 + r * 0.5;
        }
    }

    let first = points[0].clone();
    points.iter_mut().for_each(|p| *p = *p - first);

    points
}