#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

#1530 in Cryptography

Download history 3953/week @ 2024-01-05 2413/week @ 2024-01-12 8465/week @ 2024-01-19 3310/week @ 2024-01-26 5143/week @ 2024-02-02 9681/week @ 2024-02-09 1469/week @ 2024-02-16 6339/week @ 2024-02-23 3300/week @ 2024-03-01 5840/week @ 2024-03-08 7646/week @ 2024-03-15 5095/week @ 2024-03-22 17262/week @ 2024-03-29 2751/week @ 2024-04-05 4864/week @ 2024-04-12 3600/week @ 2024-04-19

31,590 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

~1.8–4MB
~73K SLoC