Skip to content

Conversation

@burdettadam
Copy link
Contributor

  • Update lib.rs to remove custom UUID converter and use direct exports
  • Change MdlPresentationSession constructor to accept String UUID parameter
  • Update Mdoc.id() method to return String instead of Uuid
  • Update MDLReaderSessionData to use String for UUID field
  • Update Python tests to expect SessionError for invalid UUIDs
  • Change Rust edition from 2024 to 2021
  • Remove unused uuid::Uuid import from reader.rs
  • Apply cargo fmt formatting fixes

This change makes UUID handling more straightforward by using String parameters instead of custom type conversion, improving API usability.

This PR replaces the previous one with a clean commit history and proper DCO sign-off.

- Rust files: Include SpruceID attribution as they use/wrap isomdl library
- Python/Kotlin files: Indicio-only headers as these are original wrapper code
- Both use dual licensing (Apache-2.0 OR MIT) with SPDX identifiers
- Added license templates for future consistency:
  - license-template-with-spruceid.txt: For files using SpruceID code
  - license-template-indicio.txt: For original Indicio code
- Properly distinguishes between original and derived work

Signed-off-by: Adam Burdett <[email protected]>
- Update lib.rs to remove custom UUID converter and use direct exports
- Change MdlPresentationSession constructor to accept String UUID parameter
- Update Mdoc.id() method to return String instead of Uuid
- Update MDLReaderSessionData to use String for UUID field
- Update Python tests to expect SessionError for invalid UUIDs
- Change Rust edition from 2024 to 2021
- Remove unused uuid::Uuid import from reader.rs
- Apply cargo fmt formatting fixes

This change makes UUID handling more straightforward by using String
parameters instead of custom type conversion, improving API usability.

Signed-off-by: Adam Burdett <[email protected]>
Resolved conflict in rust/src/lib.rs by keeping copyright headers
while maintaining UUID-to-String conversion changes.

Signed-off-by: Adam Burdett <[email protected]>
Copy link
Collaborator

@TheTreek TheTreek left a comment

Choose a reason for hiding this comment

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

Let's use UniFFI's updated type converter instead. https://mozilla.github.io/uniffi-rs/0.30/Upgrading.html

@burdettadam burdettadam marked this pull request as draft November 20, 2025 21:11
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.

3 participants