git-bot-feedback 0.1.3

A library designed for CI tools that posts comments on a Pull Request.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! This script adds a compile-time env var containing the compile-time's datetime.
//! This added env var is used to generate a sane default comment marker when the
//! consuming API (upstream) does not actually specify a comment marker to use.
use chrono::Local;

const ENV_VAR: &str = "COMPILE_DATETIME";

fn main() {
    let now = Local::now();
    println!(
        "cargo::rustc-env={ENV_VAR}={}",
        now.format("%b-%d-%Y_%H-%M")
    )
}