Skip to content

Commit fecfd42

Browse files
committed
fix: update configuration for target OS handling in Cargo.toml and main.rs
1 parent 0166d8a commit fecfd42

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

xtask/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ edition = "2024"
33
name = "xtask"
44
version = "0.1.0"
55

6-
[dependencies]
6+
[target.'cfg(any(windows, unix))'.dependencies]
7+
78
anyhow = "1.0"
89
cargo_metadata = "0.23"
910
chrono = "0.4"
@@ -20,3 +21,5 @@ tokio = { version = "1", features = ["full"] }
2021
toml.workspace = true
2122

2223
axvmconfig = { workspace = true, features = ["std"] }
24+
25+

xtask/src/main.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
#![cfg_attr(target_os = "none", no_main)]
2-
#![cfg(not(target_os = "none"))]
1+
#![cfg_attr(not(any(windows, unix)), no_main)]
2+
#![cfg_attr(not(any(windows, unix)), no_std)]
3+
#![cfg(any(windows, unix))]
34

45
use anyhow::{Context, Result, anyhow};
56
use chrono::Utc;

0 commit comments

Comments
 (0)