Skip to main content

format_version

Function format_version 

Source
pub fn format_version(info: &BuildInfo) -> String
Expand description

Format the shared version banner used by both vane and vaned.

Every content line is indented with two spaces; the output is bracketed by a leading and trailing blank line for vertical breathing room in the terminal.

Layout:


  Vane — A compact programmable proxy engine

  Built:      <version> (<commit> <date>)
  Rust:       <rustc-version-line>
  Cargo:      <cargo-version-line>
  Features:   ...                              (vaned only)
  Protocols:  ...                              (vaned only)

  Copyright (C) 2025 Canmi <t@canmi.icu>

  Released under the MIT License without restriction.
  This software comes with ABSOLUTELY NO WARRANTY.

  Homepage:   https://vane.canmi.app
  Source:     https://github.com/canmi21/vane
  License:    https://opensource.org/licenses/MIT