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 serde_support to caps #151

Merged
merged 1 commit into from
Jul 22, 2021
Merged

Conversation

ferrell-code
Copy link
Contributor

@ferrell-code ferrell-code commented Jul 20, 2021

I added serde_support upstream to the caps-rs dependency. This allows us to remove the LinuxCapabilityType and use caps::Capability directly which now implements Serialize Deserialize traits.

@ferrell-code ferrell-code force-pushed the caps-serde branch 2 times, most recently from 2612859 to 121b550 Compare July 20, 2021 22:14
Cargo.toml Outdated
@@ -13,7 +13,7 @@ features = ["std", "suggestions", "derive"]
[dependencies]
nix = "0.19.1"
procfs = "0.9.1"
caps = "0.5.1"
caps = { git = "https://github.com/lucab/caps-rs", features = ["serde_support"] }
Copy link
Member

Choose a reason for hiding this comment

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

Can you add a rev or tag and comment that you are waiting for caps to be released?

@@ -12,5 +12,5 @@ serde = { version = "1.0", features = ["derive"] }
nix = "0.19.1"
anyhow = "1.0"
serde_json = "1.0"
caps = "0.5.1"
caps = { git = "https://github.com/lucab/caps-rs", features = ["serde_support"] }
Copy link
Member

Choose a reason for hiding this comment

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

Can you add a rev or tag and comment that you are waiting for caps to be released?

@ferrell-code ferrell-code force-pushed the caps-serde branch 2 times, most recently from 2c231fb to 709f0b5 Compare July 21, 2021 19:14
format

cargo

comments

comment

cargo files
Copy link
Member

@utam0k utam0k left a comment

Choose a reason for hiding this comment

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

nice!

@utam0k utam0k merged commit 72bd795 into containers:main Jul 22, 2021
@ferrell-code ferrell-code deleted the caps-serde branch July 22, 2021 03:18
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.

None yet

2 participants