Cargo Features

[dependencies]
proto-types = { version = "0.1.11", default-features = false, features = ["cel", "serde", "protovalidate", "protocheck", "totokens", "chrono", "chrono-tz", "all_common", "rpc", "decimal", "color", "palette", "date", "datetime", "timeofday", "fraction", "money", "interval", "localized_text", "postal_address", "quaternion", "latlng", "expr", "phone_number"] }
cel

Enables conversions into cel::Value.

Enables cel =0.11.0

Affects proto-types::cel

serde

Enables serde implementations.

Enables base64, serde, serde_json, and optional chrono, serde of bytes

protovalidate protocheck?

Enables implementations for the buf.validate messages and enums.

Affects proto-types::protovalidate

protocheck = protovalidate

Used internally by protocheck.

Enables proc-macro2, quote, and syn

totokens

Enables ToTokens implementations.

Enables proc-macro2 and quote

chrono default

Enables conversion to and from chrono types for the time-related structs.

Enables optional cel =0.11.0 and chrono

chrono-tz

Enables timezone support for DateTime.

Enables chrono-tz

all_common = color, date, datetime, decimal, expr, fraction, interval, latlng, localized_text, money, phone_number, postal_address, quaternion, timeofday

Enables all message types from the google.type package.

rpc

Enables all message types from the google.rpc package.

decimal all_common?

Enables support for the google.type.Decimal, with conversions to/from rust_decimal::Decimal.

Enables rust_decimal

Affects google.type::Decimal, common::decimal

color all_common?

Enables google.type.Color.

Affects google.type::Color, common::color

palette

Enables conversions to and from types from the palette crate for Color.

Enables palette

date all_common?

Enables google.type.Date.

Affects google.type::Date, common::date

datetime all_common?

Enables google.type.DateTime.

Affects google.type::DateTime, google.type::date_time, google.type::TimeZone, common::datetime

timeofday all_common?

Enables google.type.TimeOfDay.

Affects google.type::TimeOfDay, common::time_of_day

fraction all_common?

Enables google.type.Fraction.

Affects google.type::Fraction, common::fraction

money all_common?

Enables google.type.Money.

Affects google.type::Money, common::money

interval all_common?

Enables google.type.Interval.

Affects google.type::Interval, common::interval

localized_text all_common?

Enables google.type.LocalizedText.

Affects google.type::LocalizedText

postal_address all_common?

Enables google.type.PostalAddress.

Affects google.type::PostalAddress

quaternion all_common?

Enables google.type.Quaternion.

Affects google.type::Quaternion

latlng all_common?

Enables google.type.LatLng.

Affects google.type::LatLng, common::latlng

expr all_common?

Enables google.type.Expr.

Affects google.type::Expr

phone_number all_common?

Enables google.type.PhoneNumber.

Affects google.type::PhoneNumber, google.type::phone_number

default = chrono

The chrono feature is set by default whenever proto-types is added without default-features = false somewhere in the dependency tree.