Skip to content

Commit 089cd66

Browse files
Merge #353
353: Fix doc generation r=jethrogb a=raoulstrackx Co-authored-by: Raoul Strackx <[email protected]>
2 parents 5a3b16f + 97a6095 commit 089cd66

File tree

12 files changed

+9
-7
lines changed

12 files changed

+9
-7
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@ matrix:
2828
- RUST_BACKTRACE=1 LLVM_CONFIG_PATH=llvm-3.8-config
2929
before_script:
3030
- rustup target add x86_64-fortanix-unknown-sgx x86_64-unknown-linux-musl
31-
- cd intel-sgx
3231
script:
33-
- cargo test --verbose --locked --all --exclude sgxs-loaders && [ "$(echo $(nm -D ../target/debug/sgx-detect|grep __vdso_sgx_enter_enclave))" = "w __vdso_sgx_enter_enclave" ]
32+
- cargo test --verbose --locked --all --exclude sgxs-loaders && [ "$(echo $(nm -D target/debug/sgx-detect|grep __vdso_sgx_enter_enclave))" = "w __vdso_sgx_enter_enclave" ]
3433
- cargo test --verbose --locked -p sgx-isa --features sgxstd --target x86_64-fortanix-unknown-sgx --no-run
3534
- cargo test --verbose --locked -p sgxs-tools --features pe2sgxs --bin isgx-pe2sgx
3635
- cargo test --verbose --locked -p dcap-ql --features link
@@ -40,3 +39,4 @@ matrix:
4039
# NOTE: linking glibc version of OpenSSL with musl binary.
4140
# Unlikely to produce a working binary, but at least the build succeeds.
4241
- mkdir -p /tmp/muslinclude && ln -sf /usr/include/x86_64-linux-gnu/openssl /tmp/muslinclude/openssl && PKG_CONFIG_ALLOW_CROSS=1 CFLAGS=-I/tmp/muslinclude cargo build --locked -p fortanix-sgx-tools --target x86_64-unknown-linux-musl
42+
- ./doc/generate-api-docs.sh

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ members = [
1515
"intel-sgx/report-test",
1616
"intel-sgx/sgxs",
1717
"intel-sgx/sgx-isa",
18-
"intel-sgx/sgx-pkix",
18+
"intel-sgx/sgx_pkix",
1919
"intel-sgx/sgxs-loaders",
2020
"intel-sgx/sgxs-tools",
2121
"ipc-queue",

doc/generate-api-docs.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash -e
1+
#!/bin/bash -ex
22

33
cd "$(readlink -f "$(dirname "$0")/..")"
44

@@ -50,7 +50,8 @@ LIBS_SORTED=$(
5050
)
5151

5252
for LIB in $LIBS_SORTED; do
53-
cd $LIB
53+
LIB_DIR=$(find . -maxdepth 2 -name ${LIB} -type d)
54+
cd ${LIB_DIR}
5455
ARGS=""
5556
if FEATURES="$(cargo read-manifest|jq -r '.metadata.docs.rs.features | join(",")' 2> /dev/null)"; then
5657
ARGS="--features $FEATURES"

fortanix-vme/tests/incoming_connection/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "incoming_connection"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition = "2018"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

fortanix-vme/tests/outgoing_connection/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "outgoing_connection"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition = "2018"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[package]
2+
# Unfortunately crates.io prevents us from changing the name to `sgx-pkix`
23
name = "sgx_pkix"
34
version = "0.1.1"
45
authors = ["Fortanix, Inc."]

0 commit comments

Comments
 (0)