k8s-rs-pb

Crates.iok8s-rs-pb
lib.rsk8s-rs-pb
version0.1.3
sourcesrc
created_at2024-11-21 18:30:26.564782
updated_at2024-11-22 12:31:20.121735
descriptionConverter from k8s-openapi to rust-protobuf
homepagehttps://github.com/DMoscicki/k8s-rs-pb/
repositoryhttps://github.com/DMoscicki/k8s-rs-pb/
max_upload_size
id1456539
size13,010,610
Dmitrii Mastitskii (DMoscicki)

documentation

https://github.com/DMoscicki/k8s-rs-pb/blob/master/README.md

README

This package is experimental and I tried to convert answer from k8s-openapi (kube-rs) to rust-protobuf.

In the future I will add Serialize to custom_date. At this time i only need the Deserialize (i don't like to work with JSON).

    use k8s_rs_pb::api::core::v1::Pod;
    use k8s_openapi::api::core::v1::Pod as OtherPod;

    let pod_openapi = OtherPod::default();
    let pod_pb: Pod = k8s_rs_pb::converter::from_openapi(pod_openapi).unwrap();

    assert_eq!(pod_pb.has_metadata(), true);
Commit count: 12

cargo fmt