diff --git a/Cargo.lock b/Cargo.lock index 4494a6d..7942686 100755 --- a/Cargo.lock +++ b/Cargo.lock @@ -2983,7 +2983,7 @@ dependencies = [ [[package]] name = "reticle" -version = "0.5.0" +version = "0.5.1" dependencies = [ "async-once-cell", "async-trait", diff --git a/reticle/Cargo.toml b/reticle/Cargo.toml index ab28fd9..f47d228 100755 --- a/reticle/Cargo.toml +++ b/reticle/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "reticle" -version = "0.5.0" +version = "0.5.1" edition = "2024" [lib] diff --git a/reticle/src/lib.rs b/reticle/src/lib.rs index 05ba270..3bf3fe1 100644 --- a/reticle/src/lib.rs +++ b/reticle/src/lib.rs @@ -150,6 +150,12 @@ impl ClientBuilder { self } + /// sets the confidential policy provider to URL source with the specified url + pub fn with_policies_url(mut self, url: &str) -> libattest::Result { + self.policies = Box::new(UrlPolicies::new(url)?); + Ok(self) + } + pub async fn build(self) -> Result { let reqwest_client = reqwest::Client::builder() .default_headers(self.headers) diff --git a/toolchain-x86_64-linux-gnu.cmake b/toolchain-x86_64-linux-gnu.cmake index 680f490..d6bf975 100644 --- a/toolchain-x86_64-linux-gnu.cmake +++ b/toolchain-x86_64-linux-gnu.cmake @@ -11,6 +11,12 @@ else() endif() SET(CMAKE_FIND_ROOT_PATH ${SYSROOT}) + +# Tell the cross-compiler to use the sysroot +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --sysroot=${SYSROOT}") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --sysroot=${SYSROOT}") +set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -L${SYSROOT}/lib") +set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -L${SYSROOT}/lib") if(NOT DEFINED CMAKE_FIND_ROOT_PATH_MODE_PROGRAM) SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) endif()