Skip to content

Commit

Permalink
feat: update dependencies and build script for improved cross-compila…
Browse files Browse the repository at this point in the history
…tion support
  • Loading branch information
hsp authored and hsp committed Dec 18, 2024
1 parent d05c8b6 commit 6e80672
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
8 changes: 0 additions & 8 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ tempfile = "3.14.0"
[dependencies]
env_logger = "0.11.5"
log = "0.4.16"
clap = "4.5.23"
clap = { version = "4.5.23", default-features = false, features = ["std"] }
regex = "1.5.4"
serde_json = "1.0.64"
serde = "1.0.130"
Expand Down
7 changes: 6 additions & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,18 @@ if ! command -v cross &>/dev/null; then
cargo install cross
fi

# Build for Linux with static linking
#RUSTFLAGS='-C target-feature=+crt-static' cargo build --release --target x86_64-unknown-linux-gnu

# Build for macOS
echo "Building for macOS..."
cross build --target x86_64-apple-darwin --release

# Build for Linux
echo "Building for Linux..."
cross build --target x86_64-unknown-linux-gnu --release
#cross build --target x86_64-unknown-linux-gnu --release
RUSTFLAGS='-C target-feature=+crt-static' cross build --release --target x86_64-unknown-linux-gnu
# OPENSSL_STATIC=1 RUSTFLAGS='-C target-feature=+crt-static' cargo build --target x86_64-unknown-linux-gnu --release

# Build for Windows
echo "Building for Windows..."
Expand Down

0 comments on commit 6e80672

Please sign in to comment.