-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* improve tracing and setups args * display common usefull paths * Propagate log options to plugins * remove print * reduce warnings * improve tracing and prepare 0.5.0 * Update build-binaries.yml * Update build-binaries.yml * Update README.md
- Loading branch information
1 parent
4776179
commit 2e6b24f
Showing
23 changed files
with
594 additions
and
364 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
target | ||
log.csv | ||
platform-log.csv | ||
*.swp | ||
Cargo.lock | ||
Cargo.lock | ||
src/sys_info.rs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
use std::fs::File; | ||
use std::io::Write; | ||
use std::process::Command; | ||
|
||
fn main() { | ||
// Get rustc version | ||
let output = Command::new("rustc") | ||
.args(&["--version"]) | ||
.output() | ||
.expect("failed to execute process"); | ||
let rustc_version = String::from_utf8_lossy(&output.stdout); | ||
|
||
// Get version from Cargo.toml (assuming it's in the same directory) | ||
let cargo_toml = include_str!("Cargo.toml"); | ||
let package: toml::value::Table = toml::from_str(cargo_toml).unwrap(); | ||
let version = package["package"]["version"].as_str().unwrap(); | ||
|
||
// Format information for writing | ||
let info = format!( | ||
"pub static RUSTC_VERSION: &str = \"{}\";\n | ||
pub static PLATFORM_VERSION: &str = \"{}\";\n", | ||
rustc_version.trim_end_matches("\n"), | ||
version | ||
); | ||
|
||
// Write information to file | ||
let mut file = File::create("src/sys_info.rs").expect("Failed to create sys_info.rs"); | ||
file.write_all(info.as_bytes()) | ||
.expect("Failed to write to sys_info.rs"); | ||
|
||
println!("Information written to sys_info.rs"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
cargo run -- -l |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
cargo run --features built-in-drivers -- -l |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.