Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing getset to LinuxMemory struct members #164

Merged
merged 1 commit into from
May 1, 2024

Conversation

YJDoc2
Copy link
Contributor

@YJDoc2 YJDoc2 commented Apr 29, 2024

Partially fixes #155 .
I am working something in Youki which needs to set the memory struct members, for which the setters are missing.
While working on this, I also found that directly getting a &mut Linux or &mut LinuxResourses would be helpful, as otherwise I need to call set_* on each field. I have not implemented the get_mut functionality in this, but can add if ok.

@YJDoc2 YJDoc2 requested review from saschagrunert and utam0k April 29, 2024 12:06
@utam0k utam0k merged commit 4cf1c3d into youki-dev:main May 1, 2024
6 checks passed
@utam0k
Copy link
Member

utam0k commented May 1, 2024

@YJDoc2 Do you want to release oci-spec-rs including this PR?

@YJDoc2
Copy link
Contributor Author

YJDoc2 commented May 2, 2024

@YJDoc2 Do you want to release oci-spec-rs including this PR?

Hey, I'd need a release, but I'm still checking some things in the youki to see if any more changes are needed. I'll ping back here once I'm sure current master is enough for release. Thanks!

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.

The mutability of the API 0.6.4, is it by design?
3 participants