repo_description: A lightweight and high-performance reverse proxy for NAT traversal, written in Rust. An alternative to frp and ngrok.
repo_topics: firewall frp http nat network ngrok noise noise-protocol proxy rust tunnel
code: use anyhow::Result;
  use vergen::{vergen, Config, SemverKind};
  
  fn main() -> Result<()> {
      let mut config = Config::default();
      // Change the SEMVER output to the lightweight variant
      *config.git_mut().semver_kind_mut() = SemverKind::Lightweight;
      // Add a `-dirty` flag to the SEMVER output
      *config.git_mut().semver_dirty_mut() = Some("-dirty");
      // Generate the instructions
      if let Err(e) = vergen(config) {
          eprintln!("error occurred while generating instructions: {:?}", e);
          let mut config = Config::default();
          *config.git_mut().enabled_mut() = false;
          vergen(config)
      } else {
          Ok(())
      }
  }
  