GithubHelp home page GithubHelp logo

doytsujin / vergen Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rustyhorde/vergen

0.0 1.0 0.0 456 KB

Generate cargo instructions at compile time in build scripts for use with the env! or option_env! macros

License: Apache License 2.0

Shell 0.93% Rust 99.07%

vergen's Introduction

vergen

Generate build, git, rustc, cargo, and sysinfo related cargo:rustc-env instructions via build.rs for use in your code via the env! macro or option_env! macro.

Sponsors

Special thanks to the sponsors of this project

Release 7.0 Breaking Changes

  • chrono has been replaced with time. The time crate is better maintained.
  • The local timezone support in the build and git features has been moved behind a local_offset feature flag. This is due to a potential segfault when using localtime_r as the time crate does.
  • To build with the local_offset feature, you must also explicitly delare that you are acknowledging the potential unsoundness by setting RUSTFLAGS="--cfg unsound_local_offset". Per the time docs this isn't tested, so use with extreme caution.

MSRV

The current minimum supported rust version is 1.62.0

Current Release

docs.rs Crates.io Crates.io Crates.io codecov CI sponsor

Example Usage

See the documentation at docs.rs for example usage

Environment Variables

A full list of environment variables that can be generated are listed in the following table.

Variable Sample
VERGEN_BUILD_DATE 2021-02-25
VERGEN_BUILD_TIME 23:28:39.493201
VERGEN_BUILD_TIMESTAMP 2021-02-25T23:28:39.493201+00:00
VERGEN_BUILD_SEMVER 5.0.0
VERGEN_GIT_BRANCH feature/fun
VERGEN_GIT_COMMIT_AUTHOR_EMAIL [email protected]
VERGEN_GIT_COMMIT_AUTHOR_NAME Jane Doe
VERGEN_GIT_COMMIT_COUNT 330
VERGEN_GIT_COMMIT_DATE 2021-02-24
VERGEN_GIT_COMMIT_MESSAGE feat: add commit messages
VERGEN_GIT_COMMIT_TIME 20:55:21
VERGEN_GIT_COMMIT_TIMESTAMP 2021-02-24T20:55:21+00:00
VERGEN_GIT_SEMVER 5.0.0-2-gf49246c
VERGEN_GIT_SHA f49246ce334567bff9f950bfd0f3078184a2738a
VERGEN_RUSTC_CHANNEL nightly
VERGEN_RUSTC_COMMIT_DATE 2021-02-24
VERGEN_RUSTC_COMMIT_HASH a8486b64b0c87dabd045453b6c81500015d122d6
VERGEN_RUSTC_HOST_TRIPLE x86_64-apple-darwin
VERGEN_RUSTC_LLVM_VERSION 11.0
VERGEN_RUSTC_SEMVER 1.52.0-nightly
VERGEN_CARGO_FEATURES git,build
VERGEN_CARGO_PROFILE debug
VERGEN_CARGO_TARGET_TRIPLE x86_64-unknown-linux-gnu
VERGEN_SYSINFO_NAME Manjaro Linux
VERGEN_SYSINFO_OS_VERSION Linux Manjaro Linux
VERGEN_SYSINFO_USER Yoda
VERGEN_SYSINFO_TOTAL_MEMORY 33 GB
VERGEN_SYSINFO_CPU_VENDOR Authentic AMD
VERGEN_SYSINFO_CPU_CORE_COUNT 8
VERGEN_SYSINFO_CPU_NAME cpu0,cpu1,cpu2,cpu3,cpu4,cpu5,cpu6,cpu7
VERGEN_SYSINFO_CPU_BRAND AMD Ryzen Threadripper 1900X 8-Core Processor
VERGEN_SYSINFO_CPU_FREQUENCY 3792

Contributing

See the documentation at CONTRIBUTING.md

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

vergen's People

Contributors

a-moreira avatar alexanderthaller avatar arthur-cw avatar atrox avatar colinwm avatar coreyja avatar crazysacx avatar danielschemmel avatar dependabot[bot] avatar dkg avatar drklee3 avatar dylan-dpc avatar haata avatar jasonozias avatar jdswensen avatar joaoantoniocardoso avatar joshtriplett avatar kornelski avatar kulp avatar luap99 avatar luksan avatar nickelc avatar palfrey avatar puzzlewolf avatar r-bk avatar ralfjung avatar senden9 avatar takehirokj avatar thepuzzlemaker avatar turbo87 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.