23 releases

0.3.3 Aug 30, 2024
0.3.2 Jul 30, 2021
0.3.1 May 1, 2020
0.3.0 Jan 6, 2020
0.1.8 Nov 3, 2017

#244 in Rust patterns

Download history 6378/week @ 2024-07-30 6579/week @ 2024-08-06 6037/week @ 2024-08-13 6273/week @ 2024-08-20 7184/week @ 2024-08-27 6923/week @ 2024-09-03 6399/week @ 2024-09-10 5359/week @ 2024-09-17 7270/week @ 2024-09-24 7953/week @ 2024-10-01 6499/week @ 2024-10-08 6472/week @ 2024-10-15 6469/week @ 2024-10-22 5974/week @ 2024-10-29 6059/week @ 2024-11-05 8588/week @ 2024-11-12

28,652 downloads per month
Used in 15 crates (3 directly)

Apache-2.0

1MB
481 lines

Contains (WOFF font, 400KB) NanumBarunGothic-00000000f861df9d.ttf.woff2, (WOFF font, 135KB) FiraSans-Medium-0000000066e2bc86.woff2, (WOFF font, 130KB) FiraSans-Regular-0000000084b1ad12.woff2, (WOFF font, 82KB) SourceSerif4-Bold-00000000ad926a49.ttf.woff2, (WOFF font, 77KB) SourceSerif4-Regular-0000000007da4a04.ttf.woff2, (WOFF font, 45KB) SourceCodePro-It-00000000668aca82.ttf.woff2 and 3 more.

rust_info

crates.io CI codecov
license Libraries.io for GitHub Documentation downloads
Built with cargo-make

Extracts the current rust compiler information.

Overview

This library main goal is to provide development/build tools such as cargo-make the needed information on the current rust installation and setup.

Usage

Simply include the library and invoke the get function to pull all info as follows:

fn main() {
    let rust_info = rust_info::get();

    println!("Version: {}", rust_info.version.unwrap());
    println!("Channel: {:#?}", rust_info.channel.unwrap());
    println!(
        "Target Arch: {}",
        rust_info.target_arch.unwrap_or("unknown".to_string())
    );
    println!(
        "Target Env: {}",
        rust_info.target_env.unwrap_or("unknown".to_string())
    );
    println!(
        "Target OS: {}",
        rust_info.target_os.unwrap_or("unknown".to_string())
    );
    println!(
        "Target Pointer Width: {}",
        rust_info
            .target_pointer_width
            .unwrap_or("unknown".to_string())
    );
    println!(
        "Target Vendor: {}",
        rust_info.target_vendor.unwrap_or("unknown".to_string())
    );
    println!(
        "Target Triple: {}",
        rust_info.target_triple.unwrap_or("unknown".to_string())
    );
}

Installation

In order to use this library, just add it as a dependency:

[dependencies]
rust_info = "^0.3.3"

API Documentation

See full docs at: API Docs

Contributing

See contributing guide

Release History

See Changelog

License

Developed by Sagie Gur-Ari and licensed under the Apache 2 open source license.

Dependencies