Skip to content

Commit

Permalink
Update structure
Browse files Browse the repository at this point in the history
  • Loading branch information
tinrab committed Nov 14, 2023
1 parent bee1a8b commit 660956b
Show file tree
Hide file tree
Showing 101 changed files with 2,752 additions and 511 deletions.
37 changes: 36 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,38 @@
[package]
name = "bomboni"
version = "0.1.3"
authors = ["Tin Rabzelj <[email protected]>"]
description = "Utility Library for Rust"
repository = "https://github.com/tinrab/bomboni"
homepage = "https://github.com/tinrab/bomboni"
license-file = "LICENSE"
readme = "README.md"
edition = "2021"

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

[workspace]
resolver = "2"
members = ["bomboni", "bomboni_derive", "bomboni_prost"]
members = [
"bomboni_common",
"bomboni_derive",
"bomboni_prost",
"bomboni_proto",
"bomboni_request",
]

[features]
default = ["prost", "proto", "request"]
prost = ["dep:bomboni_prost"]
proto = ["prost", "dep:bomboni_proto"]
request = ["dep:bomboni_request"]

[dependencies]
bomboni_common = { path = "bomboni_common", version = "0.1.3" }
bomboni_derive = { path = "bomboni_derive", version = "0.1.3" }

bomboni_prost = { path = "bomboni_prost", version = "0.1.3", optional = true }
bomboni_proto = { path = "bomboni_proto", version = "0.1.3", optional = true }
bomboni_request = { path = "bomboni_request", version = "0.1.3", optional = true }
43 changes: 0 additions & 43 deletions bomboni/Cargo.toml

This file was deleted.

17 changes: 0 additions & 17 deletions bomboni/src/lib.rs

This file was deleted.

5 changes: 0 additions & 5 deletions bomboni/src/proto/error.rs

This file was deleted.

238 changes: 238 additions & 0 deletions bomboni/src/proto/google.protobuf.plus.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,238 @@
///Implement [`prost::Name`] for `Timestamp`.
impl ::prost::Name for Timestamp {
const NAME: &'static str = "Timestamp";
const PACKAGE: &'static str = "google.protobuf";
fn full_name() -> String {
format!("{}.{}", Self::PACKAGE, Self::NAME)
}
fn type_url() -> String {
Self::TYPE_URL.into()
}
}
impl Timestamp {
pub const TYPE_URL: &'static str = "type.googleapis.com/Timestamp";
}
impl Timestamp {
pub const SECONDS_FIELD_NAME: &'static str = "seconds";
pub const NANOS_FIELD_NAME: &'static str = "nanos";
}
///Implement [`prost::Name`] for `DoubleValue`.
impl ::prost::Name for DoubleValue {
const NAME: &'static str = "DoubleValue";
const PACKAGE: &'static str = "google.protobuf";
fn full_name() -> String {
format!("{}.{}", Self::PACKAGE, Self::NAME)
}
fn type_url() -> String {
Self::TYPE_URL.into()
}
}
impl DoubleValue {
pub const TYPE_URL: &'static str = "type.googleapis.com/DoubleValue";
}
impl DoubleValue {
pub const VALUE_FIELD_NAME: &'static str = "value";
}
///Implement [`prost::Name`] for `FloatValue`.
impl ::prost::Name for FloatValue {
const NAME: &'static str = "FloatValue";
const PACKAGE: &'static str = "google.protobuf";
fn full_name() -> String {
format!("{}.{}", Self::PACKAGE, Self::NAME)
}
fn type_url() -> String {
Self::TYPE_URL.into()
}
}
impl FloatValue {
pub const TYPE_URL: &'static str = "type.googleapis.com/FloatValue";
}
impl FloatValue {
pub const VALUE_FIELD_NAME: &'static str = "value";
}
///Implement [`prost::Name`] for `Int64Value`.
impl ::prost::Name for Int64Value {
const NAME: &'static str = "Int64Value";
const PACKAGE: &'static str = "google.protobuf";
fn full_name() -> String {
format!("{}.{}", Self::PACKAGE, Self::NAME)
}
fn type_url() -> String {
Self::TYPE_URL.into()
}
}
impl Int64Value {
pub const TYPE_URL: &'static str = "type.googleapis.com/Int64Value";
}
impl Int64Value {
pub const VALUE_FIELD_NAME: &'static str = "value";
}
///Implement [`prost::Name`] for `UInt64Value`.
impl ::prost::Name for UInt64Value {
const NAME: &'static str = "UInt64Value";
const PACKAGE: &'static str = "google.protobuf";
fn full_name() -> String {
format!("{}.{}", Self::PACKAGE, Self::NAME)
}
fn type_url() -> String {
Self::TYPE_URL.into()
}
}
impl UInt64Value {
pub const TYPE_URL: &'static str = "type.googleapis.com/UInt64Value";
}
impl UInt64Value {
pub const VALUE_FIELD_NAME: &'static str = "value";
}
///Implement [`prost::Name`] for `Int32Value`.
impl ::prost::Name for Int32Value {
const NAME: &'static str = "Int32Value";
const PACKAGE: &'static str = "google.protobuf";
fn full_name() -> String {
format!("{}.{}", Self::PACKAGE, Self::NAME)
}
fn type_url() -> String {
Self::TYPE_URL.into()
}
}
impl Int32Value {
pub const TYPE_URL: &'static str = "type.googleapis.com/Int32Value";
}
impl Int32Value {
pub const VALUE_FIELD_NAME: &'static str = "value";
}
///Implement [`prost::Name`] for `UInt32Value`.
impl ::prost::Name for UInt32Value {
const NAME: &'static str = "UInt32Value";
const PACKAGE: &'static str = "google.protobuf";
fn full_name() -> String {
format!("{}.{}", Self::PACKAGE, Self::NAME)
}
fn type_url() -> String {
Self::TYPE_URL.into()
}
}
impl UInt32Value {
pub const TYPE_URL: &'static str = "type.googleapis.com/UInt32Value";
}
impl UInt32Value {
pub const VALUE_FIELD_NAME: &'static str = "value";
}
///Implement [`prost::Name`] for `BoolValue`.
impl ::prost::Name for BoolValue {
const NAME: &'static str = "BoolValue";
const PACKAGE: &'static str = "google.protobuf";
fn full_name() -> String {
format!("{}.{}", Self::PACKAGE, Self::NAME)
}
fn type_url() -> String {
Self::TYPE_URL.into()
}
}
impl BoolValue {
pub const TYPE_URL: &'static str = "type.googleapis.com/BoolValue";
}
impl BoolValue {
pub const VALUE_FIELD_NAME: &'static str = "value";
}
///Implement [`prost::Name`] for `StringValue`.
impl ::prost::Name for StringValue {
const NAME: &'static str = "StringValue";
const PACKAGE: &'static str = "google.protobuf";
fn full_name() -> String {
format!("{}.{}", Self::PACKAGE, Self::NAME)
}
fn type_url() -> String {
Self::TYPE_URL.into()
}
}
impl StringValue {
pub const TYPE_URL: &'static str = "type.googleapis.com/StringValue";
}
impl StringValue {
pub const VALUE_FIELD_NAME: &'static str = "value";
}
///Implement [`prost::Name`] for `BytesValue`.
impl ::prost::Name for BytesValue {
const NAME: &'static str = "BytesValue";
const PACKAGE: &'static str = "google.protobuf";
fn full_name() -> String {
format!("{}.{}", Self::PACKAGE, Self::NAME)
}
fn type_url() -> String {
Self::TYPE_URL.into()
}
}
impl BytesValue {
pub const TYPE_URL: &'static str = "type.googleapis.com/BytesValue";
}
impl BytesValue {
pub const VALUE_FIELD_NAME: &'static str = "value";
}
///Implement [`prost::Name`] for `Any`.
impl ::prost::Name for Any {
const NAME: &'static str = "Any";
const PACKAGE: &'static str = "google.protobuf";
fn full_name() -> String {
format!("{}.{}", Self::PACKAGE, Self::NAME)
}
fn type_url() -> String {
Self::TYPE_URL.into()
}
}
impl Any {
pub const TYPE_URL: &'static str = "type.googleapis.com/Any";
}
impl Any {
pub const TYPE_URL_FIELD_NAME: &'static str = "type_url";
pub const VALUE_FIELD_NAME: &'static str = "value";
}
///Implement [`prost::Name`] for `FieldMask`.
impl ::prost::Name for FieldMask {
const NAME: &'static str = "FieldMask";
const PACKAGE: &'static str = "google.protobuf";
fn full_name() -> String {
format!("{}.{}", Self::PACKAGE, Self::NAME)
}
fn type_url() -> String {
Self::TYPE_URL.into()
}
}
impl FieldMask {
pub const TYPE_URL: &'static str = "type.googleapis.com/FieldMask";
}
impl FieldMask {
pub const PATHS_FIELD_NAME: &'static str = "paths";
}
///Implement [`prost::Name`] for `Empty`.
impl ::prost::Name for Empty {
const NAME: &'static str = "Empty";
const PACKAGE: &'static str = "google.protobuf";
fn full_name() -> String {
format!("{}.{}", Self::PACKAGE, Self::NAME)
}
fn type_url() -> String {
Self::TYPE_URL.into()
}
}
impl Empty {
pub const TYPE_URL: &'static str = "type.googleapis.com/Empty";
}
///Implement [`prost::Name`] for `Duration`.
impl ::prost::Name for Duration {
const NAME: &'static str = "Duration";
const PACKAGE: &'static str = "google.protobuf";
fn full_name() -> String {
format!("{}.{}", Self::PACKAGE, Self::NAME)
}
fn type_url() -> String {
Self::TYPE_URL.into()
}
}
impl Duration {
pub const TYPE_URL: &'static str = "type.googleapis.com/Duration";
}
impl Duration {
pub const SECONDS_FIELD_NAME: &'static str = "seconds";
pub const NANOS_FIELD_NAME: &'static str = "nanos";
}
Loading

0 comments on commit 660956b

Please sign in to comment.