-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: zhongjie <[email protected]>
- Loading branch information
1 parent
347377c
commit 6d29a5c
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Rust SDK for CC Trusted API in Confidential VM | ||
|
||
This is the Rust version of our VM SDK to help you using the CC Trusted API in your Rust programs. The sub folder "cctrusted_vm" include all the source code for the VMSDK. The sub folder "sample" includes some commandline examples for your reference. | ||
|
||
# Run CLI Samples | ||
|
||
We can try the CLI samples like this: | ||
|
||
```bash | ||
cd sample | ||
|
||
# get measurement | ||
cargo run --bin cc-sample-measurement | ||
|
||
# get event log | ||
cargo run --bin cc-sample-eventlog | ||
|
||
# get quote | ||
cargo run --bin cc-sample-quote | ||
``` | ||
|
||
Or, after build successfuly, we can also run the CLIs directly: | ||
|
||
```bash | ||
cd sample | ||
|
||
# build the release version | ||
cargo build --release | ||
|
||
# get measurement | ||
target/release/cc-sample-measurement | ||
|
||
# get event log | ||
target/release/cc-sample-eventlog | ||
|
||
# get quote | ||
target/release/cc-sample-quote | ||
``` | ||
|
||
# Run Test | ||
|
||
The test is simple: | ||
|
||
```bash | ||
cd cctrusted_vm | ||
cargo test | ||
``` |