#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

#1907 in Cryptography

Download history 10716/week @ 2024-06-07 5926/week @ 2024-06-14 4786/week @ 2024-06-21 8249/week @ 2024-06-28 5411/week @ 2024-07-05 2071/week @ 2024-07-12 3880/week @ 2024-07-19 3113/week @ 2024-07-26 2797/week @ 2024-08-02 8390/week @ 2024-08-09 5480/week @ 2024-08-16 13578/week @ 2024-08-23 7092/week @ 2024-08-30 12414/week @ 2024-09-06 3271/week @ 2024-09-13 9120/week @ 2024-09-20

34,511 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