Skip to content

Commit

Permalink
build.rs: fix SIGILL in build-script-build when build with cargo zigb…
Browse files Browse the repository at this point in the history
…uild

Signed-off-by: Kun Lai <laikun@linux.alibaba.com>
  • Loading branch information
imlk0 committed Feb 24, 2025
1 parent 0f79c9b commit 17d34e0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 79 deletions.
78 changes: 3 additions & 75 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ scopeguard = "1.2.0"
serde = {version = "1.0", features = ["derive"]}
serde_json = "1.0.138"
serde_with = {version = "3.12.0", features = ["json"]}
shadow-rs = "=0.20.1"
shadow-rs = {version = "1.0.0", default-features = false}
socket2 = "0.5.8"
tempfile = "3.16.0"
tokio = {version = "1.43.0", features = ["rt-multi-thread", "sync"]}
Expand All @@ -45,7 +45,7 @@ tracing-subscriber = {version = "0.3", features = ["env-filter"]}
which = "7.0.2"

[build-dependencies]
shadow-rs = "=0.20.1"
shadow-rs = {version = "1.0.0", default-features = false, features = ["tzdb", "build"]}

[dev-dependencies]
again = "0.1.2"
Expand Down
6 changes: 4 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
fn main() -> shadow_rs::SdResult<()> {
shadow_rs::new()
use shadow_rs::ShadowBuilder;

fn main() {
ShadowBuilder::builder().build().unwrap();
}

0 comments on commit 17d34e0

Please sign in to comment.