Skip to content

Commit

Permalink
impl: bootstrap Timestamp type (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
coryan authored Oct 30, 2024
1 parent b3bdd95 commit dd495bb
Show file tree
Hide file tree
Showing 6 changed files with 423 additions and 5 deletions.
174 changes: 172 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

[workspace]

members = [
"auth"
]
members = ["auth", "types"]
27 changes: 27 additions & 0 deletions types/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

[package]
name = "types"
version = "0.1.0"
edition = "2021"

[dependencies]
serde = "1.0.214"
serde_with = "3.11.0"
time = { version = "0.3.36", features = ["formatting", "parsing"] }

[dev-dependencies]
serde = { version = "1.0.214", features = ["serde_derive"] }
serde_json = "1.0.132"
5 changes: 5 additions & 0 deletions types/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Well-known types in googleapis

:construction: this package is under construction. Its name, public API, and behavior is subject to change without notice.

This package contains well-known types used by many (if not all) GCP (Google Cloud Platform) services.
16 changes: 16 additions & 0 deletions types/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Copyright 2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

mod timestamp;
pub use crate::timestamp::*;
Loading

0 comments on commit dd495bb

Please sign in to comment.