rings-node 0.12.0

Rings is a structured peer-to-peer network implementation using WebRTC, Chord algorithm, and full WebAssembly (WASM) support.
Documentation
#[cfg(feature = "ffi")]
extern crate cbindgen;
use std::process::Command;

fn gen_version() {
    if let Ok(output) = Command::new("git")
        .args(["rev-parse", "--short", "HEAD"])
        .output()
    {
        let Ok(git_short_hash) = String::from_utf8(output.stdout) else {
            return;
        };
        println!("cargo:rustc-env=GIT_SHORT_HASH={git_short_hash}");
    }
}

fn main() {
    gen_version();
}