From fc1cd115d132f1ead1a540ec0b2ad6194784e4ef Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Sun, 12 Jan 2025 12:47:58 +0800 Subject: [PATCH] feat: udpate readme --- README.md | 14 ++++++++++++++ justfile | 3 +++ 2 files changed, 17 insertions(+) diff --git a/README.md b/README.md index 88c35d4..67c843d 100644 --- a/README.md +++ b/README.md @@ -13,3 +13,17 @@ Calling Rust FFI libraries from Go ```shell cargo install cargo-zigbuild ``` + + +# Build + +Build or Cross build + +```shell +just build +``` + +```shell +just build-linux-x86 +``` + diff --git a/justfile b/justfile index 42b1d2d..955762a 100644 --- a/justfile +++ b/justfile @@ -1,6 +1,9 @@ _: @just --list +build: + cargo build + build-linux-x86: #rustup target add x86_64-unknown-linux-gnu cargo zigbuild --release --target=x86_64-unknown-linux-gnu