This is an automated email from the ASF dual-hosted git repository. hsun pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-teaclave.git
commit 6fda4c43ad74de38071eea4b3c57cf345ebba29f Author: sunhe05 <[email protected]> AuthorDate: Mon Jun 5 02:56:17 2023 +0000 [sdk] Update the cbindgen command --- sdk/c/Makefile | 4 +++- sdk/c/cbindgen.toml | 2 +- sdk/c/teaclave_client_sdk.h | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/sdk/c/Makefile b/sdk/c/Makefile index 533ddb71..23589f24 100644 --- a/sdk/c/Makefile +++ b/sdk/c/Makefile @@ -16,7 +16,9 @@ # under the License. +# It is very slow to use cbindgen crate in sdk/rust/build.rs, +# so we put the generation separately here. RUST_CLIENT_SDK_SOURCE:=$(wildcard ../rust/src/*.rs) all: $(RUST_CLIENT_SDK_SOURCE) - rustup run nightly cbindgen ../rust -c cbindgen.toml -o teaclave_client_sdk.h + cbindgen ../rust -c cbindgen.toml -o teaclave_client_sdk.h diff --git a/sdk/c/cbindgen.toml b/sdk/c/cbindgen.toml index fc17d275..a1d64639 100644 --- a/sdk/c/cbindgen.toml +++ b/sdk/c/cbindgen.toml @@ -24,7 +24,7 @@ header = """ autogen_warning = """/* DO NOT MODIFY THIS MANUALLY! This file was generated using cbindgen. * To generate this file: * 1. Get the latest cbindgen using `cargo install --force cbindgen` - * 2. Run `rustup run nightly cbindgen ../rust -c cbindgen.toml -o + * 2. Run `cbindgen ../rust -c cbindgen.toml -o teaclave_client_sdk.h` or `make`. */""" diff --git a/sdk/c/teaclave_client_sdk.h b/sdk/c/teaclave_client_sdk.h index 95519a4a..cc54549d 100644 --- a/sdk/c/teaclave_client_sdk.h +++ b/sdk/c/teaclave_client_sdk.h @@ -21,7 +21,7 @@ /* DO NOT MODIFY THIS MANUALLY! This file was generated using cbindgen. * To generate this file: * 1. Get the latest cbindgen using `cargo install --force cbindgen` - * 2. Run `rustup run nightly cbindgen ../rust -c cbindgen.toml -o + * 2. Run `cbindgen ../rust -c cbindgen.toml -o teaclave_client_sdk.h` or `make`. */ --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
