#protobuf #tink

tink-proto

Protocol buffer message definitions for Rust port of Google's Tink cryptography library

8 releases

0.2.5 Mar 14, 2023
0.2.4 Mar 25, 2022
0.2.3 Jan 3, 2022
0.2.2 Oct 9, 2021
0.1.0 Jan 21, 2021

#1972 in Cryptography

Download history 4201/week @ 2024-07-21 3325/week @ 2024-07-28 3562/week @ 2024-08-04 7162/week @ 2024-08-11 8613/week @ 2024-08-18 13441/week @ 2024-08-25 7064/week @ 2024-09-01 9396/week @ 2024-09-08 7306/week @ 2024-09-15 8810/week @ 2024-09-22 16611/week @ 2024-09-29 3179/week @ 2024-10-06 13846/week @ 2024-10-13 7420/week @ 2024-10-20 11551/week @ 2024-10-27 1619/week @ 2024-11-03

34,449 downloads per month
Used in 12 crates (9 directly)

Apache-2.0

115KB
2K SLoC

Tink-Rust: Protobuf Definitions

Docs MSRV

This crate holds Rust structures auto-generated (using prost) from the protocol buffer message definitions in the proto/ subdirectory. These .proto files are copies from the upstream Tink project.

The version of prost used by the library is re-exported as tink_proto::prost, to allow library users to get a precise version match.

Features

The json feature enables serde_json based serialization of the structures.

License

Apache License, Version 2.0

Disclaimer

This is not an officially supported Google product.


lib.rs:

Protocol buffer message definitions for Tink.

Almost all of the code in this crate is auto-generated (using prost) from the protocol buffer message definitions in the proto/ subdirectory. These .proto files are copies from the upstream Tink project. Manual keyset serialization implementations that map enums onto strings rather than the i32 values used by prost. Manual JSON serialization for KeyStatusType enums. Manual JSON serialization for OutputPrefixType enums. Manual JSON serialization for KeyMaterialType enums. Manual serialization implementations for base64-encoded binary data.

Dependencies

~2–4MB
~76K SLoC