Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gcb/scripts/lint-unstable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,8 @@ set +v
echo "==== cargo clippy ===="
cargo clippy --all-features --all-targets --profile=test --workspace -- --deny warnings

echo "==== cargo clippy strict (handwritten crates non-test mode) ===="
cargo clippy --all-features --no-deps -p google-cloud-auth -p google-cloud-bigquery -p google-cloud-bigtable -p google-cloud-datastore -p google-cloud-firestore -p google-cloud-gax -p google-cloud-lro -p google-cloud-pubsub -p google-cloud-storage -p google-cloud-wkt -- -D missing_docs -D clippy::exhaustive_enums

echo "==== DONE ===="
/workspace/.bin/sccache --show-stats
3 changes: 3 additions & 0 deletions .gcb/scripts/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,8 @@ set +v
echo "==== cargo clippy ===="
cargo clippy --all-features --all-targets --profile=test --workspace -- --deny warnings

echo "==== cargo clippy strict (handwritten crates non-test mode) ===="
cargo clippy --all-features --no-deps -p google-cloud-auth -p google-cloud-bigquery -p google-cloud-bigtable -p google-cloud-datastore -p google-cloud-firestore -p google-cloud-gax -p google-cloud-lro -p google-cloud-pubsub -p google-cloud-storage -p google-cloud-wkt -- -D missing_docs -D clippy::exhaustive_enums

echo "==== DONE ===="
/workspace/.bin/sccache --show-stats
4 changes: 4 additions & 0 deletions src/auth/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//! Build script for `google-cloud-auth` to generate environment variables
//! at compile time, such as the active rustc version and package version.

use std::fs::File;
use std::io::Write;
use std::path::Path;

/// The main entry point for the build script.
fn main() {
let out_dir = std::env::var_os("OUT_DIR").expect("OUT_DIR not specified");
let out_path = Path::new(&out_dir).to_owned();
Expand Down
1 change: 1 addition & 0 deletions src/auth/src/credentials.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ impl EntityTag {
/// indicate that the caller's cached version (identified by a previously provided [EntityTag])
/// is still valid.
#[derive(Clone, PartialEq, Debug)]
#[allow(clippy::exhaustive_enums)]
pub enum CacheableResource<T> {
/// Indicates that the resource has not been modified and the cached version is still valid.
NotModified,
Expand Down
1 change: 1 addition & 0 deletions src/auth/src/credentials/idtoken/mds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ where

/// Specifies what assertions are included in ID Tokens fetched from the Metadata Service.
#[derive(Debug, Clone)]
#[allow(clippy::exhaustive_enums)]
pub enum Format {
/// Omit project and instance details from the payload. It's the default value.
Standard,
Expand Down
1 change: 1 addition & 0 deletions src/auth/src/credentials/service_account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ use tokio::time::Instant;
/// [JWT]: https://google.aip.dev/auth/4111
/// [scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
#[derive(Clone, Debug, PartialEq)]
#[allow(clippy::exhaustive_enums)]
pub enum AccessSpecifier {
/// Use [AccessSpecifier::Audience] for setting audience in the token.
/// `aud` is a [JWT] claim specifying intended recipient of the token,
Expand Down
1 change: 1 addition & 0 deletions src/gax/src/error/binding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ pub struct PathMismatch {
///
/// [uri]: https://clouddocs.f5.com/api/irules/HTTP__uri.html
#[derive(Debug, PartialEq)]
#[allow(clippy::exhaustive_enums)]
pub enum SubstitutionFail {
/// A required field was not set
Unset,
Expand Down
1 change: 1 addition & 0 deletions src/gax/src/retry_result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ use crate::error::Error;
/// }
/// ```
#[derive(Debug)]
#[allow(clippy::exhaustive_enums)]
pub enum RetryResult {
/// The error is non-retryable, stop the loop.
Permanent(Error),
Expand Down
1 change: 1 addition & 0 deletions src/gax/src/throttle_result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ use crate::error::Error;
/// }
/// ```
#[derive(Debug)]
#[allow(clippy::exhaustive_enums)]
pub enum ThrottleResult {
/// The error is retryable, but the policy is stopping the loop.
///
Expand Down
1 change: 1 addition & 0 deletions src/lro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ use std::future::Future;
/// * `MetadataType` - The LRO may return values of this type while the
/// operation is in progress. This may include some measure of "progress".
#[derive(Debug)]
#[allow(clippy::exhaustive_enums)]
pub enum PollingResult<ResponseType, MetadataType> {
/// The operation is still in progress.
InProgress(Option<MetadataType>),
Expand Down
1 change: 1 addition & 0 deletions src/storage/src/signed_url.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
///
/// [resource path]: https://docs.cloud.google.com/storage/docs/authentication/canonical-requests#about-resource-path
#[derive(Debug, Clone, Copy, Default)]
#[allow(clippy::exhaustive_enums)]
pub enum UrlStyle {
/// Path style URL: `https://storage.googleapis.com/bucket/object`.
///
Expand Down
1 change: 1 addition & 0 deletions src/wkt/src/internal/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
use std::marker::PhantomData;

#[derive(Clone, Debug, PartialEq)]
#[allow(clippy::exhaustive_enums)]
pub enum UnknownEnumValue {
Integer(i32),
String(String),
Expand Down
Loading