add todo suggestions
This commit is contained in:
parent
5c2d2eec4f
commit
418e1b9dbf
@ -70,6 +70,7 @@ tonic-build = "0.12"
|
|||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = []
|
default = []
|
||||||
|
# TOOD: rename to testing and reverse uses in the code
|
||||||
occlum = []
|
occlum = []
|
||||||
reqwest = ["dep:reqwest"]
|
reqwest = ["dep:reqwest"]
|
||||||
actix-web = ["dep:actix-web", "actix-service", "actix-http"]
|
actix-web = ["dep:actix-web", "actix-service", "actix-http"]
|
||||||
|
2
build.rs
2
build.rs
@ -1,9 +1,11 @@
|
|||||||
fn main() {
|
fn main() {
|
||||||
|
// TODO: make this conditional on occlum feature
|
||||||
// TODO: should be conditional on the target platform (musl vs glibc)
|
// TODO: should be conditional on the target platform (musl vs glibc)
|
||||||
println!("cargo:rustc-link-search=/opt/occlum/toolchains/dcap_lib/musl");
|
println!("cargo:rustc-link-search=/opt/occlum/toolchains/dcap_lib/musl");
|
||||||
// Cargo will automatically know it must look for `libocclum_dcap.a`
|
// Cargo will automatically know it must look for `libocclum_dcap.a`
|
||||||
println!("cargo:rustc-link-lib=occlum_dcap");
|
println!("cargo:rustc-link-lib=occlum_dcap");
|
||||||
|
|
||||||
|
// TODO: make this conditional if compiling grpcs examples
|
||||||
tonic_build::configure()
|
tonic_build::configure()
|
||||||
.build_server(true)
|
.build_server(true)
|
||||||
.compile(&["examples/echo.proto"], &["examples"])
|
.compile(&["examples/echo.proto"], &["examples"])
|
||||||
|
@ -34,6 +34,7 @@ occlum init && rm -rf image
|
|||||||
cp ../Occlum.json ./
|
cp ../Occlum.json ./
|
||||||
copy_bom -f ../client.yaml --root image --include-dir /opt/occlum/etc/template
|
copy_bom -f ../client.yaml --root image --include-dir /opt/occlum/etc/template
|
||||||
# TODO: "--enable-edmm Y" must be only for platforms that support SGX2
|
# TODO: "--enable-edmm Y" must be only for platforms that support SGX2
|
||||||
|
# TODO: make sure the bundle needs SGX2 to run since SGX1 is vulnerable to https://x.com/PratyushRT/status/1828183761055330373
|
||||||
occlum build --sign-key ../examples/signing_key.pem
|
occlum build --sign-key ../examples/signing_key.pem
|
||||||
occlum package client.tar.gz
|
occlum package client.tar.gz
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user