-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3b18b8d
commit f09db5c
Showing
7 changed files
with
133 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
coverage: | ||
status: | ||
project: | ||
default: | ||
target: auto | ||
threshold: 1% | ||
comment: | ||
behavior: new |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: 2 | ||
updates: | ||
- directory: / | ||
open-pull-requests-limit: 5 | ||
package-ecosystem: cargo | ||
rebase-strategy: auto | ||
schedule: | ||
interval: daily | ||
- directory: / | ||
open-pull-requests-limit: 5 | ||
package-ecosystem: github-actions | ||
rebase-strategy: auto | ||
schedule: | ||
interval: daily |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: "CI/CD" | ||
|
||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
|
||
lint: | ||
name: lint | ||
uses: wolcomm/.github/.github/workflows/rust-lint.yml@master | ||
|
||
test: | ||
name: test | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
toolchain: [stable, nightly] | ||
args: | ||
- --lib | ||
- --test versions | ||
include: | ||
- toolchain: nightly | ||
args: --doc | ||
uses: wolcomm/.github/.github/workflows/rust-test.yml@master | ||
with: | ||
toolchain: ${{ matrix.toolchain }} | ||
args: ${{ matrix.args }} | ||
|
||
publish: | ||
name: publish | ||
if: ${{ github.event_name == 'push' && | ||
startsWith(github.ref, 'refs/tag') }} | ||
needs: | ||
- lint | ||
- test | ||
uses: wolcomm/.github/.github/workflows/rust-publish.yml@explicit-package | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/target | ||
/Cargo.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[package] | ||
name = "juniper-jet" | ||
version = "0.1.0-alpha.1" | ||
edition = "2021" | ||
authors = ["Ben Maddison <benm@workonline.africa>"] | ||
description = "Rust client for the Juniper JET gRPC API" | ||
license = "MIT" | ||
repository = "https://github.com/wolcomm/juniper-jet-rs" | ||
readme = "README.md" | ||
categories = ["network-programming"] | ||
|
||
[lib] | ||
name = "jet" | ||
|
||
[dependencies] | ||
|
||
[dev-dependencies] | ||
version-sync = "^0.9" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
//! A rust client for the Juniper JET gRPC API | ||
Check failure on line 1 in src/lib.rs GitHub Actions / nightlypackage `juniper-jet` is missing `package.keywords` metadata
Check failure on line 1 in src/lib.rs GitHub Actions / stablepackage `juniper-jet` is missing `package.keywords` metadata
Check failure on line 1 in src/lib.rs GitHub Actions / stablepackage `juniper-jet` is missing `package.keywords` metadata
|
||
#![doc(html_root_url = "https://docs.rs/juniper-jet/0.1.0-alpha.1")] | ||
// clippy lints | ||
#![warn(clippy::pedantic)] | ||
#![warn(clippy::cargo)] | ||
#![warn(clippy::nursery)] | ||
#![allow(clippy::redundant_pub_crate)] | ||
// rustc lints | ||
#![allow(box_pointers)] | ||
#![warn(absolute_paths_not_starting_with_crate)] | ||
#![warn(deprecated_in_future)] | ||
#![warn(elided_lifetimes_in_paths)] | ||
#![warn(explicit_outlives_requirements)] | ||
#![warn(keyword_idents)] | ||
#![warn(macro_use_extern_crate)] | ||
#![warn(meta_variable_misuse)] | ||
#![warn(missing_abi)] | ||
#![warn(missing_copy_implementations)] | ||
#![warn(missing_debug_implementations)] | ||
#![warn(missing_docs)] | ||
#![warn(non_ascii_idents)] | ||
#![warn(noop_method_call)] | ||
#![warn(pointer_structural_match)] | ||
#![warn(rust_2021_incompatible_closure_captures)] | ||
#![warn(rust_2021_incompatible_or_patterns)] | ||
#![warn(rust_2021_prefixes_incompatible_syntax)] | ||
#![warn(rust_2021_prelude_collisions)] | ||
#![warn(single_use_lifetimes)] | ||
#![warn(trivial_casts)] | ||
#![warn(trivial_numeric_casts)] | ||
#![warn(unreachable_pub)] | ||
#![warn(unsafe_code)] | ||
#![warn(unsafe_op_in_unsafe_fn)] | ||
#![warn(unstable_features)] | ||
#![warn(unused_crate_dependencies)] | ||
#![warn(unused_extern_crates)] | ||
#![warn(unused_import_braces)] | ||
#![warn(unused_lifetimes)] | ||
#![warn(unused_qualifications)] | ||
#![warn(unused_results)] | ||
#![warn(variant_size_differences)] | ||
// docs.rs build config | ||
#![cfg_attr(docsrs, feature(doc_auto_cfg))] | ||
|
||
// silence unused dev-dependency warnings | ||
#[cfg(test)] | ||
mod deps { | ||
use version_sync as _; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#[test] | ||
fn test_html_root_url() { | ||
version_sync::assert_html_root_url_updated!("src/lib.rs"); | ||
} |