Skip to content

Update rust samples - #510

Closed
pawelpros wants to merge 5 commits into
intel:mainfrom
pawelpros:pproskur/fixsamples
Closed

pawelpros wants to merge 5 commits into
intel:mainfrom
pawelpros:pproskur/fixsamples

Conversation

@pawelpros

Copy link
Copy Markdown

No description provided.

@pawelpros
pawelpros requested a review from a team as a code owner December 1, 2026 15:55
Copilot AI balanced review requested due to automatic review settings December 1, 2026 15:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the Rust attestation sample and TDX binding updates.

No open issues 🎉

What changed in this PR

Updates the Rust SGX/TDX attestation samples and TDX bindings with refreshed dependencies, code cleanup, and clearer build and deployment instructions.

Changes:

  • Generates each report-data byte independently and improves report-generation error output.
  • Shares supplemental-data setup between verification modes and cleans up result handling.
  • Updates dependencies, bindgen integration, and sample documentation.
File Description
SampleCode/​RustTDQuoteGenerationSample/​src/​main.rs Updates random report-data generation and error output; removes redundant code.
SampleCode/​RustTDQuoteGenerationSample/​README.md Clarifies TD VM requirements and build/deployment steps.
SampleCode/​RustTDQuoteGenerationSample/​Cargo.toml Updates rand.
SampleCode/​RustQuoteVerificationSample/​src/​main.rs Extracts shared supplemental-data setup and cleans up verification code.
SampleCode/​RustQuoteVerificationSample/​README.md Reorganizes prerequisites and build/run instructions; updates the installation-guide link.
SampleCode/​RustQuoteVerificationSample/​Cargo.toml Updates CLI and quote-verification dependencies.
QuoteGeneration/​quote_wrapper/​tdx-attest-sys/​src/​lib.rs Allows missing safety documentation in generated bindings.
QuoteGeneration/​quote_wrapper/​tdx-attest-sys/​Cargo.toml Updates bindgen.
QuoteGeneration/​quote_wrapper/​tdx-attest-sys/​build.rs Simplifies SDK-path handling and updates bindgen callback initialization.

Review effort: Balanced

@pawelpros
pawelpros force-pushed the pproskur/fixsamples branch 2 times, most recently from 9764fc2 to d695af9 Compare December 2, 2026 08:21
Signed-off-by: Pawel Proskurnicki <pawel.proskurnicki@intel.com>
- Updated dependency and corresponding code change
- Run clippy + fmt

Signed-off-by: Pawel Proskurnicki <pawel.proskurnicki@intel.com>
- Updated dependency and corresponding code changes
- Run clippy + fmt

Signed-off-by: Pawel Proskurnicki <pawel.proskurnicki@intel.com>
- Updated dependency and corresponding code changes
- Run clippy + fmt

Signed-off-by: Pawel Proskurnicki <pawel.proskurnicki@intel.com>
Signed-off-by: Pawel Proskurnicki <pawel.proskurnicki@intel.com>
@pawelpros
pawelpros force-pushed the pproskur/fixsamples branch from d695af9 to 1897ccf Compare December 2, 2026 08:59
@pawelpros pawelpros closed this Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants