proto-types 0.2.1

⚙️ Implementations for various common protobuf types.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "proto-types"
version = "0.2.1"
authors = ["Rick-Phoenix <https://github.com/Rick-Phoenix>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "⚙️ Implementations for various common protobuf types."
readme = "README.md"
keywords = [
    "protobuf",
    "types",
    "common",
    "wkt",
    "no_std",
]
license = "MPL-2.0"
repository = "https://github.com/Rick-Phoenix/proto-types"

[package.metadata.release]
tag = true
tag-name = "v{{version}}"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
all_common = [
    "decimal",
    "color",
    "date",
    "datetime",
    "timeofday",
    "fraction",
    "money",
    "interval",
    "localized_text",
    "postal_address",
    "quaternion",
    "latlng",
    "expr",
    "phone_number",
]
cel = [
    "std",
    "dep:cel",
]
chrono = [
    "dep:chrono",
    "cel?/chrono",
]
chrono-tz = ["dep:chrono-tz"]
chrono-wasm = [
    "chrono",
    "chrono/wasmbind",
]
color = []
date = []
datetime = []
decimal = ["dep:rust_decimal"]
default = [
    "std",
    "chrono",
]
diesel-mysql = [
    "std",
    "chrono",
    "dep:diesel",
    "diesel/chrono",
    "diesel/mysql_backend",
]
diesel-postgres = [
    "std",
    "chrono",
    "dep:diesel",
    "diesel/chrono",
    "diesel/postgres_backend",
]
diesel-sqlite = [
    "std",
    "chrono",
    "dep:diesel",
    "diesel/chrono",
    "diesel/sqlite",
]
document-features = ["dep:document-features"]
expr = []
fraction = []
interval = []
latlng = []
localized_text = []
money = []
palette = ["dep:palette"]
phone_number = []
postal_address = []
protovalidate = []
quaternion = []
rpc = []
serde = [
    "dep:serde",
    "dep:serde_json",
    "dep:base64",
    "chrono?/serde",
    "bytes/serde",
]
std = [
    "serde?/std",
    "serde_json?/std",
    "chrono?/std",
    "chrono?/now",
    "num-traits/std",
    "bytes/std",
    "prost/std",
    "base64?/std",
    "thiserror/std",
    "rust_decimal?/std",
    "chrono-tz?/std",
    "palette?/std",
]
timeofday = []

[lib]
name = "proto_types"
path = "src/lib.rs"

[dependencies.base64]
version = "0.22"
features = ["alloc"]
optional = true
default-features = false

[dependencies.bytes]
version = "1"
default-features = false

[dependencies.cel]
version = "0.12"
features = ["bytes"]
optional = true

[dependencies.chrono]
version = "0.4"
features = ["alloc"]
optional = true
default-features = false

[dependencies.chrono-tz]
version = "0.10"
optional = true
default-features = false

[dependencies.diesel]
version = "2"
optional = true

[dependencies.document-features]
version = "0.2"
optional = true

[dependencies.num-traits]
version = "0.2"
default-features = false

[dependencies.palette]
version = "0.7"
features = ["alloc"]
optional = true
default-features = false

[dependencies.paste]
version = "1"

[dependencies.prost]
version = "0.14"
features = ["derive"]
default-features = false

[dependencies.rust_decimal]
version = "1"
optional = true
default-features = false

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
default-features = false

[dependencies.serde_json]
version = "1"
optional = true
default-features = false

[dependencies.thiserror]
version = "2"
default-features = false

[lints.clippy]
branches_sharing_code = "warn"
cast_lossless = "warn"
cast_possible_truncation = "warn"
cast_possible_wrap = "warn"
cast_sign_loss = "warn"
checked_conversions = "warn"
clear_with_drain = "warn"
cloned_instead_of_copied = "warn"
collapsible_else_if = "warn"
collection_is_never_read = "warn"
comparison_chain = "warn"
copy_iterator = "warn"
derive_partial_eq_without_eq = "warn"
elidable_lifetime_names = "warn"
equatable_if_let = "warn"
explicit_into_iter_loop = "warn"
flat_map_option = "warn"
float_cmp = "warn"
format_push_string = "warn"
future_not_send = "warn"
if_not_else = "warn"
ignored_unit_patterns = "warn"
implicit_clone = "warn"
imprecise_flops = "warn"
inconsistent_struct_constructor = "warn"
into_iter_without_iter = "warn"
invalid_upcast_comparisons = "warn"
ip_constant = "warn"
iter_filter_is_ok = "warn"
iter_filter_is_some = "warn"
iter_not_returning_iterator = "warn"
iter_on_empty_collections = "warn"
iter_on_single_items = "warn"
iter_without_into_iter = "warn"
large_digit_groups = "warn"
large_stack_arrays = "warn"
literal_string_with_formatting_args = "warn"
manual_ilog2 = "warn"
manual_instant_elapsed = "warn"
manual_is_power_of_two = "warn"
manual_let_else = "allow"
manual_midpoint = "warn"
manual_string_new = "warn"
match_same_arms = "warn"
maybe_infinite_iter = "warn"
mismatching_type_param_order = "warn"
missing_const_for_fn = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
must_use_candidate = "warn"
mut_mut = "warn"
naive_bytecount = "warn"
needless_collect = "warn"
needless_pass_by_ref_mut = "warn"
needless_pass_by_value = "warn"
needless_raw_string_hashes = "warn"
needless_type_cast = "warn"
no_effect_underscore_binding = "warn"
non_send_fields_in_send_ty = "warn"
option_as_ref_cloned = "warn"
option_option = "warn"
redundant_clone = "warn"
ref_option = "warn"
ref_option_ref = "warn"
return_self_not_must_use = "warn"
same_functions_in_if_condition = "warn"
stable_sort_primitive = "warn"
string_add_assign = "warn"
struct_excessive_bools = "warn"
suboptimal_flops = "warn"
suspicious_operation_groupings = "warn"
too_long_first_doc_paragraph = "warn"
trait_duplication_in_bounds = "warn"
trivially_copy_pass_by_ref = "warn"
tuple_array_conversions = "warn"
type_repetition_in_bounds = "warn"
unchecked_time_subtraction = "warn"
uninlined_format_args = "warn"
unnecessary_box_returns = "warn"
unnecessary_debug_formatting = "warn"
unnecessary_join = "warn"
unnecessary_literal_bound = "warn"
unnested_or_patterns = "warn"
unreadable_literal = "warn"
unused_async = "warn"
unused_peekable = "warn"
unused_rounding = "warn"
unused_self = "warn"
use_self = "warn"
useless_let_if_seq = "warn"